Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sofianedjerbi/linearify

Fast region file format manipulation.
https://github.com/sofianedjerbi/linearify

Last synced: 29 days ago
JSON representation

Fast region file format manipulation.

Awesome Lists containing this project

README

        


Logo

# 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);
}
```