writeCompressed static method

Future<void> writeCompressed(
  1. String file,
  2. 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);
}