Function init [src]

Prototype

pub fn init(allocator: std.mem.Allocator) Encoder

Parameters

allocator: std.mem.Allocator

Source

pub fn init(allocator: std.mem.Allocator) Encoder { return Encoder{ .buffer = ArrayListReverse.init(allocator) }; }