W3cubDocs

/Dart 2

TransferableTypedData class

An efficiently transferable sequence of byte values.

A TransferableTypedData is created from a number of bytes. This will take time proportional to the number of bytes.

The TransferableTypedData 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.

Annotations
  • @Since("2.3.2")

Constructors

TransferableTypedData.fromList(List<TypedData> list)
factory
Creates a new TransferableTypedData containing the bytes of list. [...]

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

materialize() → ByteBuffer
Creates a new ByteBuffer containing the bytes stored in this TransferableTypedData. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-isolate/TransferableTypedData-class.html