Esc

Storage_Block

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

Declaration

Storage_Block :: struct {
    next: *Storage_Block;    count: s64;    borrowed: [] u8;    parent: Allocator;    arena: [] u8;    arena_limit: s64;    arena_block: *Storage_Block;    scrap: *Scrap;}

One top-level decode owns the blocks used by all its children. A header and its payload share one allocation; only actual field bytes are copied into payload chunks. A borrowed decode adds a block that records its input, so fields pointing there are never freed either.

See also