bswap 0.4.0

A Rust library for byte-swapping integers, pointers, and slices.

Crate bswap [] [src]

Modules

beu16

Swap bytes for u16 objects only on little-endian targets, does nothing on big-endian targets.

beu32

Swap bytes for [u8; 3] objects only on little-endian targets, does nothing on big-endian targets. Swap bytes for u32 objects only on little-endian targets, does nothing on big-endian targets.

beu64

Swap bytes for [u8; 5] objects only on little-endian targets, does nothing on big-endian targets. Swap bytes for [u8; 6] objects only on little-endian targets, does nothing on big-endian targets. Swap bytes for [u8; 7] objects only on little-endian targets, does nothing on big-endian targets. Swap bytes for u64 objects only on little-endian targets, does nothing on big-endian targets.

beusize
leu16

Swap bytes for u16 objects only on big-endian targets, does nothing on little-endian targets.

leu32

Swap bytes for [u8; 3] objects only on big-endian targets, does nothing on little-endian targets. Swap bytes for u32 objects only on big-endian targets, does nothing on little-endian targets.

leu64

Swap bytes for [u8; 5] objects only on big-endian targets, does nothing on little-endian targets. Swap bytes for [u8; 6] objects only on big-endian targets, does nothing on little-endian targets. Swap bytes for [u8; 7] objects only on big-endian targets, does nothing on little-endian targets. Swap bytes for u64 objects only on big-endian targets, does nothing on little-endian targets.

leusize
u16

Swap bytes for u16 objects on all targets.

u24

Swap bytes for [u8; 3] objects on all targets.

u32

Swap bytes for u32 objects on all targets.

u40

Swap bytes for [u8; 5] objects on all targets.

u48

Swap bytes for [u8; 6] objects on all targets.

u56

Swap bytes for [u8; 7] objects on all targets.

u64

Swap bytes for u64 objects on all targets.

u8

Swap bytes for u8 slices on all targets.