WasiDirectoryEntry Struct

An entry of a directory, returned by WasiFileSystem.EnumerateDirectory.

public readonly struct WasiDirectoryEntry : IEquatable<WasiDirectoryEntry>
Implements

Constructors

NameDescription
WasiDirectoryEntry(string, WasiFileType, ulong)An entry of a directory, returned by WasiFileSystem.EnumerateDirectory.

WasiDirectoryEntry(string, WasiFileType, ulong)

An entry of a directory, returned by WasiFileSystem.EnumerateDirectory.

public WasiDirectoryEntry(string Name, WasiFileType Type, ulong Inode)

Parameters

Name string
The name of the entry.
Type WasiFileType
The type of the entry (not of the target of a symbolic link).
Inode ulong
The serial number of the entry (0 when unknown).

Properties

NameDescription
InodeThe serial number of the entry (0 when unknown).
NameThe name of the entry.
TypeThe type of the entry (not of the target of a symbolic link).

The serial number of the entry (0 when unknown).

public ulong Inode { get; init; }

Property value

ulong

The name of the entry.

public string Name { get; init; }

Property value

string

The type of the entry (not of the target of a symbolic link).

public WasiFileType Type { get; init; }

Property value

WasiFileType

Methods

NameDescription
Deconstruct(string, WasiFileType, ulong)
Equals(WasiDirectoryEntry)
Equals(object)
GetHashCode()
ToString()

Deconstruct(string, WasiFileType, ulong)

public void Deconstruct(out string Name, out WasiFileType Type, out ulong Inode)

Parameters

Name string
Type WasiFileType
Inode ulong

No documentation is available.

Equals overloads

Equals(WasiDirectoryEntry)

public bool Equals(WasiDirectoryEntry other)
Parameters
other WasiDirectoryEntry
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 ==(WasiDirectoryEntry, WasiDirectoryEntry)
operator !=(WasiDirectoryEntry, WasiDirectoryEntry)

operator ==(WasiDirectoryEntry, WasiDirectoryEntry)

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

Parameters

left WasiDirectoryEntry
right WasiDirectoryEntry

Returns

bool

No documentation is available.

operator !=(WasiDirectoryEntry, WasiDirectoryEntry)

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

Parameters

left WasiDirectoryEntry
right WasiDirectoryEntry

Returns

bool

No documentation is available.