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 with encoding, decoded to its size bytes.
encode(DVAssetEncoding encoding, Uint8List bytes, {int? level}) → Uint8List?
bytes encoded with encoding at level (the highest by default), or null when that is not smaller than bytes.
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.