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.
) → void
- Release the resources used by this object. The object is no longer usable after this method is called.
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
) → String
A string representation of this object.
String assetKey) → Future< ImmutableBuffer>
Create a buffer from the asset with key
String path) → Future< ImmutableBuffer>
Create a buffer from the file with
Uint8List list) → Future< ImmutableBuffer>
- Creates a copy of the data from a Uint8List suitable for internal use in the engine.