TransferableTypedData2 class abstract
An efficiently transferable sequence of byte values.
A TransferableTypedData2 is created from a number of bytes. This will take time proportional to the number of bytes.
The TransferableTypedData2 can be moved between isolates, so sending it through a send port will only take constant time.
When sent this way, the local transferable can no longer be materialized, and the received object is now the only way to materialize the data.
Constructors
-
TransferableTypedData2.fromList(List<
TypedData> list) -
Creates a new TransferableTypedData2 containing the bytes of
list
.factory
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
-
materialize(
) → ByteBuffer - Creates a new ByteBuffer containing the bytes stored in this TransferableTypedData2.
-
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