Esc

Decode_Options

structextensionsince 0.36.1Source
  • macOS: Decode_Options works on macOS
  • Linux: Decode_Options works on Linux
  • Windows: Decode_Options works on Windows
  • Wasm: Decode_Options works on Wasm

Declaration

Decode_Options :: struct {
    max_depth: s64 = 100;    max_size: s64 = 2147483647;    borrow := false;    discard_unknown := false;// Accept string fields without checking that they are UTF-8. Faster on text-heavy
messages, but a string may then hold any bytes; leave it off for untrusted input.    skip_utf8 := false;}

Limits for decode and merge. With borrow, strings and bytes point into the input, which must outlive the result; free knows not to release them.

See also