Function allocator [src]
Using this at the same time as the interface returned by threadSafeAllocator is not thread safe.
Prototype
pub fn allocator(self: *FixedBufferAllocator) Allocator
Parameters
self: *FixedBufferAllocator
Source
pub fn allocator(self: *FixedBufferAllocator) Allocator {
return .{
.ptr = self,
.vtable = &.{
.alloc = alloc,
.resize = resize,
.remap = remap,
.free = free,
},
};
}