seekForward
Function parameters
Parameters
- fbr:*FixedBufferReader
- amount:u64
Functions in this namespace
Functions
Error sets in this namespace
Error Sets
Source
Implementation
pub fn seekForward(fbr: *FixedBufferReader, amount: u64) Error!void {
if (fbr.buf.len - fbr.pos < amount) return error.EndOfBuffer;
fbr.pos += @intCast(amount);
}