Skip to main contentModule codec
Source - WireDecode
- Decode a wire type from a byte slice.
- WireEncode
- Encode a wire type into a caller-owned buffer.
- bounded_capacity
- Capacity to preallocate for
count elements that still have to be decoded
out of remaining bytes, each at least min_element_size bytes on the
wire. - read_bytes
- Helper to read a byte slice of
len bytes from buf at offset. - read_f32_le
- Helper to read an
f32 LE from buf at offset. - read_str
- Helper to read a UTF-8 string of
len bytes from buf at offset. - read_u8
- Helper to read a
u8 from buf at offset. - read_u16_le
- Helper to read a
u16 LE from buf at offset. - read_u32_le
- Helper to read a
u32 LE from buf at offset. - read_u64_le
- Helper to read a
u64 LE from buf at offset. - read_u128_le
- Helper to read a
u128 LE from buf at offset.