Memory class Null safety

Represents the native heap.

Implemented types
Available Extensions
Annotations

Properties

buffer ByteBuffer
Can be used to directly access the memory of this object. [...]
@doNotStore, read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

allocate<T extends NativeType>(int byteCount, {int? alignment}) Pointer<T>
Allocates byteCount bytes of memory on the native heap. [...]
override
free(Pointer<NativeType> pointer) → void
Releases memory allocated on the native heap.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

global Memory?
The default Memory object to use. [...]
read / write

Static Methods

init([int pointerSizeBytes = 4]) → void
Must be called before working with web_ffi to initalize all type sizes. [...]

Constants

endianess → const Endian
The endianess of data stored. [...]
Endian.little