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.