Pointer<T extends NativeType> class
Represents a pointer into the native C memory. Cannot be extended.
- Inheritance
-
- Object
- NativeType
- Pointer
- Available extensions
- Annotations
-
- @sealed
Constructors
- Pointer.fromAddress(int ptr, [Memory? bindTo])
-
Constructs a pointer from an address.
factory
Properties
- address → int
-
Access to the raw pointer value.
final
- boundMemory → Memory
-
The Memory object this pointer is bound to.
final
- hashCode → int
-
The hash code for a Pointer only depends on its address.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
How much memory in bytes the type this pointer points to occupies,
or
null
for @unsized types.final
Methods
-
cast<
U extends NativeType> () → Pointer< U> - Casts this pointer to an other type.
-
elementAt(
int index) → Pointer< T> - Pointer arithmetic (takes element size into account).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
viewSingle(
int index) → ByteData -
Returns a view of a single element at
index
(takes element size into account).
Operators
-
operator ==(
Object other) → bool -
Two pointers are equal if their address is the same, independently
of their type argument and of the memory they are bound to.
override