DVNativeCodec class final
Brotli and zstd from a loaded native server library.
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
-
decode(
DVAssetEncoding encoding, Uint8List stored, int size) → Uint8List -
stored, encoded withencoding, decoded to itssizebytes. -
encode(
DVAssetEncoding encoding, Uint8List bytes, {int? level}) → Uint8List? -
bytesencoded withencodingatlevel(the highest by default), or null when that is not smaller thanbytes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDecoders(
) → void - Makes brotli and zstd decodable by every pack in this process.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
DynamicLibrary library) → DVNativeCodec? -
The codec in
library, or null when it has none.