Type

A class that provides a type for the type field in some Styx messages. Inherits methods from StyxObject class.

Constructors

this
this(STYX_MESSAGE_TYPE type)

A constructor that creates an object of the Type class with the given parameter in the form of STYX_MESSAGE_TYPE. If called without parameters, then the default parameter is STYX_MESSAGE_TYPE.R_ERROR.

Alias This

pack

An alias for easier packing into a byte array without having to manually call the pack() method

Members

Functions

getType
STYX_MESSAGE_TYPE getType()

Get as STYX_MESSAGE_TYPE value

pack
ubyte[] pack()

Pack to bytes array

setType
void setType(STYX_MESSAGE_TYPE type)

Set from STYX_MESSAGE_TYPE value

toString
string toString()

Convenient string representation of an object for printing

unpack
void unpack(ubyte[] bytes)

Unpack from bytes array

Variables

_representation
ubyte[] _representation;
Undocumented in source.
_type
STYX_MESSAGE_TYPE _type;
Undocumented in source.

Inherited Members

From StyxObject

pack
ubyte[] pack()

Pack (serialize) Styx object to byte array

unpack
void unpack(ubyte[] bytes)

Unpack (deserialize) Styx object from byte array

See Also

https://web.archive.org/web/20201029184954/https://powerman.name/Inferno/man/5/0intro.html

Meta