#endian #byte #serialization

yanked bytewise

An endian aware extension to readers and writers to ease serialization

0.3.0 Oct 19, 2020
0.2.0 May 11, 2016
0.1.0 May 10, 2016

#86 in #endian

39 downloads per month

MPL-2.0 license

31KB
507 lines

Overview

Bytewise is a crate for easily reading and writing integers and floats in an endian aware manner.

Provides traits:

  • ReadExt, the general Read extension, contains both big and little endian functionality.
  • WriteExt, the general Write extension, contains both big and little endian functionality.
  • ReadExtBE, a more specific Read extension, contains only big endian functionality. Also aliased as ReadExtBigEndian.
  • WriteExtBE, a more specific Write extension, contains only big endian functionality. Also aliased as WriteExtBigEndian.
  • ReadExtLE, a more specific Read extension, contains only little endian functionality. Also aliased as ReadExtLittleEndian.
  • WriteExtLE, a more specific Write extension, contains only little endian functionality. Also aliased as WriteExtLittleEndian.
  • ReadExtVE, a more flexible Read extension, can change between big and little endian at runtime. Also aliased as ReadExtVariableEndian.
  • WriteExtVE, a more flexible Write extension, can change between big and little endian at runtime. Also aliased as WriteExtVariableEndian.

The minimum supported rust version is 1.40

Dependencies