Expand description
Extends the bytes crate with functions to read fixed-length numbers wrapped in buffer
underflow checks. This is often useful when working with variable-length encoded buffers.
This is in a separate module to make it easy to ignore when it is not needed.
Traitsยง
- TryGet
Fixed Support - When working with variable-length encodings for numbers, the buffers themselves become variable length, and it is impossible to check that they are long enough before decoding them. Fixed-length buffer layouts have obvious benefits, but if some protocol uses var-length encoding, buffer underflow can occur even when reading fixed-length numbers.