Esc

decode_allocator

procedureextensionsince 0.36.1Source
  • macOS: decode_allocator works on macOS
  • Linux: decode_allocator works on Linux
  • Windows: decode_allocator works on Windows
  • Wasm: decode_allocator works on Wasm

Produces the stable allocator only when a structural allocation is needed. Borrowed decodes use it too: only string and bytes payloads differ between the two modes.

Signature

decode_allocator :: (r: *Reader) -> Allocator

See also