Crate bytesutil

Source
Expand description

This library is a byte utility which provides simplified APIs over to_le_bytes, from_le_bytes, to_be_bytes, from_be_bytes and a java-like ByteBuf. The library also works in no_std mode.

Structs§

ByteBuf
A java-like wrapper over a buffer of bytes.
Combinestd
A tool which combines a Read+Seek and a Write+Seek into a Read+Write+Seek.

Traits§

ReadBytes
Endian aware read from a byte buffer.
ReadExtstd
Endian aware read from a Read.
ReadFillstd
Allows to read into a buffer as much as possible.
ReadFromstd
Endian aware read from a Read.
ReadToVecstd
Allows reading an entire IO stream into a vec.
WriteBytes
Endian aware write to a byte buffer.
WriteExtstd
Endian aware write to a Write.
WriteTostd
Endian aware write to a Write.

Type Aliases§

StaticByteBuf
A shortcut to create a stack allocated fixed size ByteBuf