Crates.io | mcrw |
lib.rs | mcrw |
version | 0.4.0 |
source | src |
created_at | 2022-01-12 21:03:30.507905 |
updated_at | 2022-01-12 21:03:30.507905 |
description | A library for working with the Minecraft data types |
homepage | |
repository | https://gitlab.com/siderite/mcrw |
max_upload_size | |
id | 513015 |
size | 32,890 |
A library for working with the Minecraft data types.
use mcrw::MCReadExt;
let mut buf = [0x04, 0x6d, 0x63, 0x72, 0x77];
println!("{}", buf.as_slice().read_string().unwrap()); // Prints "mcrw"
use mcrw::MCWriteExt;
let mut vec = Vec::new();
vec.write_var_int(42).unwrap();
vec.write_string("mcrw").unwrap();