# osrs-buffer
[](https://github.com/runecore/osrs-buffer)
[](https://docs.rs/osrs-buffer)
[](https://crates.io/crates/osrs-buffer)
[](https://deps.rs/repo/github/runecore/osrs-buffer)
[](https://discord.gg/CcTa7TZfSc)
A buffer for Oldschool Runescape data types.
## Installation
Add this to your `Cargo.toml` file:
```toml
[dependencies]
osrs-buffer = "0.4.0"
```
## Example
```rust
use osrs_buffer::ByteBuffer;
fn main() {
let mut buf = ByteBuffer::new(1);
buf.write_i8(123);
assert_eq!(buf.read_i8(), 123);
}
```
## Contributing
This repository is open for contributions. For bigger changes it is advised to [open an issue](https://github.com/runecore/osrs-buffer/issues/new) to discuss these matters.
## License
`osrs-buffer` is distributed under the terms of the MIT license.
See [LICENSE](LICENSE) for details.