NetworkPacket class final
Example of a struct using alignment and endianness
- Inheritance
- Implemented types
- Available extensions
Constructors
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
- messageType ↔ int
-
getter/setter pair
-
payload
↔ Pointer<
Uint8> -
getter/setter pair
- payloadLength ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Cleanup resources
-
getPayload(
) → List< int> - Gets the payload data
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPayload(
List< int> data) → void - Sets the payload data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → Pointer< NetworkPacket> -
Allocates memory for a
NetworkPacket
instance -
free(
Pointer< NetworkPacket> ptr) → void - Static dispose method for the pointer