ImmutableBuffer class base

A handle to a read-only byte buffer that is managed by the engine.

The creator of this object is responsible for calling dispose when it is no longer needed.

Properties

debugDisposed bool
Whether dispose has been called.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
The length, in bytes, of the underlying data.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Release the resources used by this object. The object is no longer usable after this method is called.
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

Static Methods

fromAsset(String assetKey) Future<ImmutableBuffer>
Create a buffer from the asset with key assetKey.
fromFilePath(String path) Future<ImmutableBuffer>
Create a buffer from the file with path.
fromUint8List(Uint8List list) Future<ImmutableBuffer>
Creates a copy of the data from a Uint8List suitable for internal use in the engine.