writeToStream static method

Future<Uint8List> writeToStream(
  1. CompoundTag tag
)

Implementation

static Future<Uint8List> writeToStream(CompoundTag tag) async {
  _io = ByteLayer();
  Tag.writeNamedTag(tag, _io);

  return _io.bytes;
}