Skip to main content

Module wire

Module wire 

Source
Expand description

A bounds-checked little-endian reader and writer for frame parsing.

Reader never panics: every read returns Truncated when the input runs out, so parsers built on it turn malformed input into errors.

Structs§

Reader
A cursor over a byte slice that reads little-endian values.
Truncated
The input ended before the value being read.

Traits§

Writer
Little-endian writers for Vec<u8>.