Esc

Toml_Options

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

Declaration

Toml_Options :: struct {
    max_input_bytes: int = 16 << 20;    max_depth: int = 128;    max_nodes: int = 1 << 20;// one decoded key, string or fraction    max_string_bytes: int = 16 << 20;// optional source projection, used by Jai_Format    record_statements: bool;    max_number_bytes: int = 4096;    max_retained_bytes: int = 128 << 20;    max_output_bytes: int = 32 << 20;
// Typed decoding only: a key the target type does not declare is an error, as if every
struct had @toml(deny_unknown_fields).    deny_unknown_fields: bool;}

Memory, nesting and output limits shared by parsing and writing. Set record_statements before parsing to retain source statement order.

See also