Registry / serialization / byteorder

byteorder

JSON →
library1.5.0rscratesunverified

Library for reading/writing numbers in big-endian and little-endian.

# Cargo.toml [dependencies] byteorder = "1.5.0"
INSTALL
IMPORT
SIG · BYTEORDER
B
byteorder
serializationrustv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReadBytesExt
use byteorder::{BigEndian, ReadBytesExt};

Read a u32 in big-endian from a byte slice.

use byteorder::{BigEndian, ReadBytesExt}; use std::io::Cursor; fn main() { let mut rdr = Cursor::new(vec![0x00, 0x01, 0x02, 0x03]); let val = rdr.read_u32::<BigEndian>().unwrap(); println!("{}", val); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
byteorder — cargo add byteorder · libregistry