WasiFileStat Struct

The status of a file (filestat), returned by WasiFileSystem.GetStat.

public readonly struct WasiFileStat : IEquatable<WasiFileStat>
Implements

Constructors

NameDescription
WasiFileStat(WasiFileType, ulong, DateTimeOffset, DateTimeOffset, DateTimeOffset)The status of a file (filestat), returned by WasiFileSystem.GetStat.

WasiFileStat(WasiFileType, ulong, DateTimeOffset, DateTimeOffset, DateTimeOffset)

WasiFileSystem.cs

The status of a file (filestat), returned by WasiFileSystem.GetStat.

public WasiFileStat(WasiFileType Type, ulong Size, DateTimeOffset LastAccessTime, DateTimeOffset LastWriteTime, DateTimeOffset ChangeTime)

Parameters

Type WasiFileType
The type of the file.
Size ulong
The size of a regular file in bytes, or the length of the target of a symbolic link.
LastAccessTime DateTimeOffset
The time of the last access.
LastWriteTime DateTimeOffset
The time of the last write.
ChangeTime DateTimeOffset
The time of the last change of the status.

Properties

NameDescription
ChangeTimeThe time of the last change of the status.
InodeGets the serial number of the file, distinct for each file of the file system (0 when unknown).
LastAccessTimeThe time of the last access.
LastWriteTimeThe time of the last write.
LinkCountGets the number of hard links to the file.
SizeThe size of a regular file in bytes, or the length of the target of a symbolic link.
TypeThe type of the file.

The time of the last change of the status.

public DateTimeOffset ChangeTime { get; init; }

Property value

DateTimeOffset

Gets the serial number of the file, distinct for each file of the file system (0 when unknown).

public ulong Inode { get; init; }

Property value

ulong

LastAccessTime

WasiFileSystem.cs

The time of the last access.

public DateTimeOffset LastAccessTime { get; init; }

Property value

DateTimeOffset

LastWriteTime

WasiFileSystem.cs

The time of the last write.

public DateTimeOffset LastWriteTime { get; init; }

Property value

DateTimeOffset

Gets the number of hard links to the file.

public ulong LinkCount { get; init; }

Property value

ulong

The size of a regular file in bytes, or the length of the target of a symbolic link.

public ulong Size { get; init; }

Property value

ulong

The type of the file.

public WasiFileType Type { get; init; }

Property value

WasiFileType

Methods

NameDescription
Deconstruct(WasiFileType, ulong, DateTimeOffset, DateTimeOffset, DateTimeOffset)
Equals(WasiFileStat)
Equals(object)
GetHashCode()
ToString()

Deconstruct(WasiFileType, ulong, DateTimeOffset, DateTimeOffset, DateTimeOffset)

public void Deconstruct(out WasiFileType Type, out ulong Size, out DateTimeOffset LastAccessTime, out DateTimeOffset LastWriteTime, out DateTimeOffset ChangeTime)

Parameters

Type WasiFileType
Size ulong
LastAccessTime DateTimeOffset
LastWriteTime DateTimeOffset
ChangeTime DateTimeOffset

No documentation is available.

Equals overloads

Equals(WasiFileStat)

public bool Equals(WasiFileStat other)
Parameters
other WasiFileStat
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(WasiFileStat, WasiFileStat)
operator !=(WasiFileStat, WasiFileStat)

operator ==(WasiFileStat, WasiFileStat)

public static bool operator ==(WasiFileStat left, WasiFileStat right)

Parameters

left WasiFileStat
right WasiFileStat

Returns

bool

No documentation is available.

operator !=(WasiFileStat, WasiFileStat)

public static bool operator !=(WasiFileStat left, WasiFileStat right)

Parameters

left WasiFileStat
right WasiFileStat

Returns

bool

No documentation is available.