NetworkMessage class final

Mixed endianness struct for network protocols

Inheritance
Implemented types
Available extensions

Constructors

NetworkMessage.new()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
data Pointer<Uint8>
getter/setter pair
dataLength int
getter/setter pair
flags int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messageId int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp int
getter/setter pair

Methods

dispose() → void
Disposes the network message and frees the allocated memory.
getData() List<int>
Retrieves the data from the network message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(List<int> bytes) → void
Sets the data for the network message.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

alloc() Pointer<NetworkMessage>
Allocates memory for a NetworkMessage instance.
free(Pointer<NetworkMessage> ptr) → void
Frees the allocated memory for a NetworkMessage instance.