Qid

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

Constructors

this
this(STYX_QID_TYPE type, uint vers, ulong path)

A constructor that creates a unique qid number based on the parameters passed to it. If it is called without parameters, then the type will be STYX_QID_TYPE.QTFILE and zero values for the remaining parameters.

Alias This

pack

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

Members

Functions

getPath
ulong getPath()

Get path from Qid object

getType
STYX_QID_TYPE getType()

Get Qid type from Qid object

getVers
uint getVers()

Get version from Qid object

pack
ubyte[] pack()

Pack to bytes array

setPath
void setPath(ulong path)

Set path from unsigned value

setType
void setType(STYX_QID_TYPE type)

Set type from STYX_QID_TYPE value

setVers
void setVers(uint vers)

Set version from unsigned value

toString
string toString()

Convenient string representation of an object for printing

unpack
void unpack(ubyte[] bytes)

Unpack from bytes array

Variables

_path
ulong _path;
Undocumented in source.
_representation
ubyte[] _representation;
Undocumented in source.
_type
STYX_QID_TYPE _type;
Undocumented in source.
_vers
uint _vers;
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