Crate binary_rw

source ·
Expand description

Library for reading and writing binary data.

If the wasm32 feature is enabled then length prefixed strings use a u32 for the length so that the encoded data is portable across platforms.

Otherwise string length is encoded using usize which may vary across platforms.

wasm32 will also change read_usize to read a 32bit integer

If you only want the u32 strings please use string_len_u32 feature

Structs§

Enums§

  • Error generated reading and writing binary data.
  • Variants to describe endianness.

Traits§

Type Aliases§

  • Result type for binary errors.