#minecraft #byte #type #mc-read-ext

mcrw

A library for working with the Minecraft data types

1 unstable release

0.4.0 Jan 12, 2022

#208 in #minecraft

MPL-2.0 license

10KB
168 lines

mcrw

A library for working with the Minecraft data types.

Example

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();

No runtime deps