pub fn takeByte(r: *Reader) Error!u8
Reads 1 byte from the stream or returns error.EndOfStream.
error.EndOfStream
Asserts the buffer capacity is nonzero.
r: *Reader
ReadFailed
See the Reader implementation for detailed diagnostics.
Reader
EndOfStream
1161 1162 1163 1164 1165
pub fn takeByte(r: *Reader) Error!u8 { const result = try peekByte(r); r.seek += 1; return result; }
Reads 1 byte from the stream or returns
error.EndOfStream.Asserts the buffer capacity is nonzero.