NbtReader constructor

NbtReader(
  1. Uint8List list
)

Implementation

NbtReader(Uint8List list) {
  data = list;
  nbtCompression = _detectCompression();
  if (nbtCompression != NbtCompression.none) {
    data = nbtCompression.decompressData(data!);
  }
  readByteData = data!.buffer.asByteData();
}