linearify

Crates.iolinearify
lib.rslinearify
version0.1.6
sourcesrc
created_at2023-06-09 12:11:40.626625
updated_at2023-06-11 00:10:44.425077
descriptionFast region file format manipulation.
homepage
repository
max_upload_size
id886195
size54,394
Sofiane H. Djerbi (kugge)

documentation

README

Logo

Quickstart

Here is an example using FastNBT to print a whole chunk.

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);
}
Commit count: 0

cargo fmt