pub struct InBuffer<'a> {
pub src: &'a [u8],
pub pos: usize,
}
Expand description
Wrapper around an input buffer.
Bytes will be read starting at src[pos]
.
pos
will be updated after reading.
Returns a new InBuffer
around the given slice.
Starts with pos = 0
.
Returns the current cursor position.
Sets the new cursor position.
If pos > self.src.len()
.
Formats the value using the given formatter. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.