pub fn readAtLeastOurAmt(d: *Decoder, stream: *std.Io.Reader, our_amt: usize) !void
Same as readAtLeast but also increases our_end by exactly our_amt. Use when our_amt is calculated by us, not by them.
readAtLeast
our_end
our_amt
d: *Decoder
stream: *std.Io.Reader
our_amt: usize
676 677 678 679 680
pub fn readAtLeastOurAmt(d: *Decoder, stream: *std.Io.Reader, our_amt: usize) !void { assert(!d.disable_reads); try readAtLeast(d, stream, our_amt); d.our_end = d.idx + our_amt; }
Same as
readAtLeastbut also increasesour_endby exactlyour_amt. Use whenour_amtis calculated by us, not by them.