Esc

Storage_Allocator

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

Declaration

Storage_Allocator :: struct {
    parent: Allocator;    storage: **Storage_Block;    hot: *Storage_Block;}

Allocator scope used while replacing/freeing fields: interior payload pointers are retained until their owner releases the entire block. Other allocations free normally.

See also