Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sofianedjerbi/linearify
Fast region file format manipulation.
https://github.com/sofianedjerbi/linearify
Last synced: 2 months ago
JSON representation
Fast region file format manipulation.
- Host: GitHub
- URL: https://github.com/sofianedjerbi/linearify
- Owner: sofianedjerbi
- License: gpl-3.0
- Created: 2023-06-09T23:33:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-11T00:10:38.000Z (over 1 year ago)
- Last Synced: 2024-04-05T16:30:04.519Z (9 months ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quickstart
Here is an example using [FastNBT](https://github.com/owengage/fastnbt) to print a whole chunk.
```rust
use fastnbt::Value;
use linearify::{self, Region};fn main() {
let mut region = linearify::open_linear("./r.0.0.linear").unwrap();
let buf = region.chunks[0].clone().unwrap().raw_chunk;
let val: Value = fastnbt::from_bytes(buf.as_slice()).unwrap();
println!("{:?}", val);
}
```