readFromStream static method

Future<CompoundTag> readFromStream(
  1. Uint8List list
)

Implementation

static Future<CompoundTag> readFromStream(Uint8List list) async {
  _io = ByteLayer();
  try {
    _io.writeBytes(list);
    _io.resetPosition();
  } catch (E) {
    print(E);
  } finally {
    return Tag.readNamedTag(_io) as CompoundTag;
  }
}