Stat

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

Constructors

this
this(ushort type, uint dev, Qid qid, Perm mode, uint atime, uint mtime, ulong length, string name, string uid, string gid, string muid)

A constructor that creates an object of the Stat class with the given parameters. If called without parameters, then the default parameter for type, dev, atime, mtime, length is zero; default value for Perm and Qid parameter is standard initialized values for their (see Perm and Qid classes); the default parameter for name, uid, gid and muid is empty string.

Alias This

pack

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

Members

Functions

getAtime
uint getAtime()

Get access time from Stat object

getDev
uint getDev()

Get device from Stat object

getGid
string getGid()

Get user group name from Stat object

getLength
ulong getLength()

Get size from Stat object

getMode
Perm getMode()

Get mode from Stat object

getMtime
uint getMtime()

Get modification time from Stat object

getMuid
string getMuid()

Get modificator's name from Stat object

getName
string getName()

Get name from Stat object

getQid
Qid getQid()

Get Qid from Stat object

getType
ushort getType()

Get type from Stat object

getUid
string getUid()

Get user name from Stat object

pack
ubyte[] pack()

Pack to bytes array

setAtime
void setAtime(uint atime)

Set access time from unsigned value

setDev
void setDev(uint dev)

Set device from unsigned value

setGid
void setGid(string gid)

Set user group name from string

setLength
void setLength(ulong length)

Set size (in bytes) from unsigned value

setMode
void setMode(Perm mode)

Set mode from Perm type

setMtime
void setMtime(uint mtime)

Set modification time from unsigned value

setMuid
void setMuid(string muid)

Set modificator's name from string

setName
void setName(string name)

Set name from string

setQid
void setQid(Qid qid)

Set Qid from Qid type

setType
void setType(ushort type)

Set type from unsigned value

setUid
void setUid(string uid)

Set user name from string

toString
string toString()

Convenient string representation of an object for printing

unpack
void unpack(ubyte[] bytes)

Unpack from bytes array

Variables

_atime
uint _atime;
Undocumented in source.
_dev
uint _dev;
Undocumented in source.
_gid
string _gid;
Undocumented in source.
_length
ulong _length;
Undocumented in source.
_mode
Perm _mode;
Undocumented in source.
_mtime
uint _mtime;
Undocumented in source.
_muid
string _muid;
Undocumented in source.
_name
string _name;
Undocumented in source.
_qid
Qid _qid;
Undocumented in source.
_representation
ubyte[] _representation;
Undocumented in source.
_type
ushort _type;
Undocumented in source.
_uid
string _uid;
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