Skip to content

h-sumiya/simple16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[dependencies]
simple16 = { git = "https://github.com/h-sumiya/simple16" }
use simple16::{load,dump};

fn main() {
    let data = vec![1u32, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100, 1000];
    let mut buf = Vec::new();
    dump(&data, &mut buf);
    println!("dumped: {:?}", buf);

    let mut data2 = Vec::new();
    load(&buf, &mut data2).unwrap();

    assert_eq!(data, data2)
}

Releases

No releases published

Packages

No packages published

Languages