Function readAtLeastOurAmt [src]
Same as readAtLeast but also increases our_end by exactly our_amt.
Use when our_amt is calculated by us, not by them.
Prototype
pub fn readAtLeastOurAmt(d: *Decoder, stream: anytype, our_amt: usize) !void
Parameters
d: *Decoder
our_amt: usize
Source
pub fn readAtLeastOurAmt(d: *Decoder, stream: anytype, our_amt: usize) !void {
assert(!d.disable_reads);
try readAtLeast(d, stream, our_amt);
d.our_end = d.idx + our_amt;
}