Dir

Directory entry representation in some 9P messages. The constructor parameters are the same as the constructor parameters of the Stat structure.

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)

Contruct from raw values: The constructor parameters are the same as the constructor parameters of the Stat structure.

Alias This

pack

Pack to binary data

Members

Functions

pack
ubyte[] pack()

Pack to byte array

toString
string toString()

String representation of Dir structure

unpack
void unpack(ubyte[] bytes)

Unpack from byte array

Inherited Members

From Stat

_type
ushort _type;
Undocumented in source.
_dev
uint _dev;
Undocumented in source.
_qid
Qid _qid;
Undocumented in source.
_mode
Perm _mode;
Undocumented in source.
_atime
uint _atime;
Undocumented in source.
_mtime
uint _mtime;
Undocumented in source.
_length
ulong _length;
Undocumented in source.
_name
string _name;
Undocumented in source.
_uid
string _uid;
Undocumented in source.
_gid
string _gid;
Undocumented in source.
_muid
string _muid;
Undocumented in source.
_representation
ubyte[] _representation;
Undocumented in source.
setType
void setType(ushort type)

Set type from unsigned value

setDev
void setDev(uint dev)

Set device from unsigned value

setQid
void setQid(Qid qid)

Set Qid from Qid type

setMode
void setMode(Perm mode)

Set mode from Perm type

setAtime
void setAtime(uint atime)

Set access time from unsigned value

setMtime
void setMtime(uint mtime)

Set modification time from unsigned value

setLength
void setLength(ulong length)

Set size (in bytes) from unsigned value

setName
void setName(string name)

Set name from string

setUid
void setUid(string uid)

Set user name from string

setGid
void setGid(string gid)

Set user group name from string

setMuid
void setMuid(string muid)

Set modificator's name from string

getType
ushort getType()

Get type from Stat object

getDev
uint getDev()

Get device from Stat object

getQid
Qid getQid()

Get Qid from Stat object

getMode
Perm getMode()

Get mode from Stat object

getAtime
uint getAtime()

Get access time from Stat object

getMtime
uint getMtime()

Get modification time from Stat object

getLength
ulong getLength()

Get size from Stat object

getName
string getName()

Get name from Stat object

getUid
string getUid()

Get user name from Stat object

getGid
string getGid()

Get user group name from Stat object

getMuid
string getMuid()

Get modificator's name from Stat object

pack
ubyte[] pack()

Pack to bytes array

unpack
void unpack(ubyte[] bytes)

Unpack from bytes array

toString
string toString()

Convenient string representation of an object for printing

Meta