BOTW resource size table (RSTB) library in Rust
A quick and easy library for manipulating the resource size table (RSTB) from The Legend of Zelda: Breath of the Wild in Rust. Can edit an RSTB directly or convert to and from a JSON representation. Basic usage to manipulate an RSTB file:
use ;
let buf: = read?;
// Read RSTB from data, can automatically decompress if yaz0 compressed
// (requires `yaz0` feature)
let mut table: ResourceSizeTable = from_binary?;
// Set the size for a resource
table.set;
// Check the size
assert_eq!;
// Dump to JSON, if `json` feature enabled
// Write new binary copy, and we'll yaz0 compress it
let out_buf: = table.to_compressed_binary;