NbtDecoder class

A utility class for detecting, decompressing, and compressing NBT data.

Constructors

NbtDecoder.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compress(Uint8List bytes, {NbtCompression? compression}) Uint8List
Compresses the given bytes using the specified compression method.
decompress(dynamic bytes) Uint8List
Decompresses the given bytes based on its detected compression format.
detectCompression(dynamic bytes) NbtCompression
Detects the compression format of the given bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited