nora_endian

Crates.ionora_endian
lib.rsnora_endian
version0.1.2
sourcesrc
created_at2022-07-30 12:36:32.486774
updated_at2022-07-30 12:42:31.096469
descriptionCrate to make dealing with endianness convenient.
homepage
repositoryhttps://github.com/Demindiro/nora_endian
max_upload_size
id635471
size7,148
David Hoppenbrouwers (Demindiro)

documentation

https://docs.rs/nora_endian

README

Nora endian

Yet another crate to deal with endianness, though focused on simplicity

Example

use nora_endian::u32le;

let flags = u32le::from(1234);
let index = u32le::from(0);

// Easy operations on & comparisons between le/be and native types
if flags & 1 == 0 {
   // ...
}

let index_plus_one_u32: u32 = 1 + index;
let index_plus_one_u32le: u32le = index + 1;
Commit count: 7

cargo fmt