writeCompressed static method
- String file,
- CompoundTag tag
Implementation
static Future<void> writeCompressed(String file, CompoundTag tag) async {
_io = ByteLayer();
Tag.writeNamedTag(tag, _io);
await _io.compress();
await _io.writeToFile(file);
}