bump

std.allocator.bump

rec BumpState

pub rec BumpState;

brk bump 分配器跟踪状态

current:当前的 bump 指针位置 end:brk 区域的当前末尾

fun make

pub fun make(a: *A.Allocator, state: *BumpState) O.Option[*u8];

初始化一个由 bump 支持的 Allocator 及其 BumpState

a:要初始化的 Allocator state:要初始化的 BumpState(必须比 Allocator 活得更久)