SnappyMemory class final
Codec output that owns external memory.
bytes is a zero-copy view over length valid bytes inside memory.
Properties
- bytes → Uint8List
-
Zero-copy view over the valid bytes.
final
- capacity → int
-
Bytes actually allocated (at least length).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Number of valid bytes in bytes.
final
- memory → UnsafeBytes
-
The owning allocation; pass it to free or to native I/O.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
free(
) → void - Releases the external allocation. Views into bytes become invalid.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited