Fields

end_index: usize,
buffer: []u8,

Functions

fn allocator(self: *FixedBufferAllocator) Allocator

WARNING using this at the same time as the interface returned by `threadSafeAl…

WARNING using this at the same time as the interface returned by threadSafeAllocator is not thread safe

fn init(buffer: []u8) FixedBufferAllocator

No documentation provided.

fn isLastAllocation(self: *FixedBufferAllocator, buf: []u8) bool

NOTE: this will not work in all cases, if the last allocation had an adjusted_in…

NOTE: this will not work in all cases, if the last allocation had an adjusted_index then we won’t be able to determine what the last allocation was. This is because the alignForward operation done in alloc is not reversible.

fn ownsPtr(self: *FixedBufferAllocator, ptr: [*]u8) bool

No documentation provided.

fn ownsSlice(self: *FixedBufferAllocator, slice: []u8) bool

No documentation provided.

fn reset(self: *FixedBufferAllocator) void

No documentation provided.

fn threadSafeAllocator(self: *FixedBufferAllocator) Allocator

Provides a lock free thread safe Allocator interface to the underlying `FixedB…

Provides a lock free thread safe Allocator interface to the underlying FixedBufferAllocator WARNING using this at the same time as the interface returned by allocator is not thread safe