A binary system to be used for Bedrock & RakNet protocol.
📄Cargo.toml
[dependencies]
binary-utils= { git ="https://github.com/ismaileke/binary-utils.git",branch="master"}📄main.rs
use binary_utils::binary::Stream;fnmain(){letmut stream = Stream::new(vec![1,2],0);
stream.put_byte(128);
stream.put_i24_le(12345);let _ = stream.get_byte();// first byte -> 1let _ = stream.get_byte();// second byte -> 2let _ = stream.get_byte();// third byte -> 128let triad_num = stream.get_i24_le();// triad number -> 12345println!("{}", triad_num);// 12345println!("{:?}", stream.get_buffer());// [1, 2, 128, 57, 48, 0]}It is still in development.