Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ismaileke/binary-utils
A binary system to be used for RakNet protocol
https://github.com/ismaileke/binary-utils
binary minecraft-plugin minecraft-server raknet raknet-network-engine rust-crate rust-library
Last synced: 13 days ago
JSON representation
A binary system to be used for RakNet protocol
- Host: GitHub
- URL: https://github.com/ismaileke/binary-utils
- Owner: ismaileke
- License: mit
- Created: 2024-08-19T12:18:23.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-10-28T08:53:20.000Z (3 months ago)
- Last Synced: 2024-11-18T01:09:42.520Z (2 months ago)
- Topics: binary, minecraft-plugin, minecraft-server, raknet, raknet-network-engine, rust-crate, rust-library
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# binary-utils
A binary system to be used for RakNet protocol.## Usage
πCargo.toml
```css
[dependencies]
binary-utils = { git = "https://github.com/ismaileke/binary-utils.git", branch = "master"}
```πmain.rs
```rust
use binary_utils::binary::Stream;fn main() {
let mut stream = Stream::new(vec![1, 2], 0);
stream.put_byte(128);
stream.put_l_triad(12345);let _ = stream.get_byte(); // first byte -> 1
let _ = stream.get_byte(); // second byte -> 2
let _ = stream.get_byte(); // third byte -> 128
let triad_num = stream.get_l_triad(); // triad number -> 12345println!("{}", triad_num); // 12345
println!("{:?}", stream.get_buffer()); // [1, 2, 128, 57, 48, 0]
}
```## π NOTE
It is still in development.