Struct Reader
Source struct Reader<'a> {
buf: &'a [u8],
}
Expand description
Bounds-checked cursor over an untrusted packet.
Wrap a packet slice at position 0.
Consume the next len bytes.
Next byte, None once the buffer ends.
Next four bytes as an IPv4 address.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.