pub fn lastOr(self: CircularBuffer, lit: u8) u8 self: CircularBufferlit: u8376
377
378
379
380
381 pub fn lastOr(self: CircularBuffer, lit: u8) u8 {
return if (self.len == 0)
lit
else
self.get((self.dict_size + self.cursor - 1) % self.dict_size);
}
Retrieve the last byte or return a default