Function push [src]

Prototype

pub fn push(self: *@This(), b: u1) Allocator.Error!void

Parameters

self: *@This()b: u1

Source

pub fn push(self: *@This(), b: u1) Allocator.Error!void { const byte_index = self.bit_len >> 3; if (self.bytes.items.len <= byte_index) { try self.bytes.append(0); } pushWithStateAssumeCapacity(self.bytes.items, &self.bit_len, b); }