io/region: use ChunkArray to parse region header

A layout of a ChunkArray::<u32> matches the binary format of the region
header.
This commit is contained in:
Matthias Schiffer 2023-01-27 22:12:02 +01:00
parent 28b22ce423
commit daa188eb1d
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 15 additions and 9 deletions

7
Cargo.lock generated
View file

@ -20,6 +20,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bytemuck"
version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c041d3eab048880cb0b86b256447da3f18859a163c3b8d8893f4e6368abe6393"
[[package]]
name = "byteorder"
version = "1.4.3"
@ -202,6 +208,7 @@ name = "minedmap"
version = "0.1.0"
dependencies = [
"anyhow",
"bytemuck",
"clap",
"fastnbt",
"flate2",