Function init [src]

Prototype

pub fn init(buffer: []u8) FixedBufferAllocator

Parameters

buffer: []u8

Source

pub fn init(buffer: []u8) FixedBufferAllocator { return .{ .buffer = buffer, .end_index = 0, }; }