MMBuffer class

A native memory buffer, must call MMBuffer.destroy() after no longer use.

Constructors

MMBuffer(int length)
Create a memory buffer with size of length.

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The size of the memory buffer.
no setter
pointer Pointer<Uint8>?
The pointer of underlying memory buffer.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asList() Uint8List?
Get a list view of the underlying data. Must call destroy() later after not longer use.
destroy() → void
Must call this after no longer use.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
takeList() Uint8List?
Copy the underlying data as a list. And destroy() itself at the same time.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromList(List<int>? list) MMBuffer?
Copy all data from list.