Usage
Add this library to your project by:
Example
reading:
use ByteCord;
let data = vec!;
let cord = new;
// Read with 4-byte alignment
let mut reader = cord.read_with_alignment;
let a = cord.next_be_u32.unwrap;
let b = cord.next_n.unwrap;
building:
use ByteCordBuilder;
// a new builer with alignment of 1 byte (meaning no alignment)
let mut data = new;
data.append_le_u32;
data.append_u8;
data.append_le_i64;
let slice = data.into_boxed_slice;
License
This project is dual-licensed under: