Rectangle class final

Example of a struct with arrays

Inheritance
Implemented types
Available extensions

Constructors

Rectangle.new()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
hashCode int
The hash code for this object.
no setterinherited
points Array<Int32>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteBuffer
Serializes the Rectangle struct to a ByteBuffer.
setPoints(int x1, int y1, int x2, int y2) → void
Sets the points of the Rectangle struct.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() Pointer<Rectangle>
Allocates memory for a new Rectangle struct.
create() Rectangle
Creates a new Rectangle instance.
override
deserialize(ByteBuffer buffer) Rectangle
Deserializes a ByteBuffer to a Rectangle struct.