Table of Contents

Class ReadResult

Namespace
CStructSharp.Values
Assembly
CStructSharp.dll

The outcome of a debug value read: the selected value exactly as ReadValue returns it, plus one DebugData record per value the reader produced, in read order.

public sealed record ReadResult : IEquatable<ReadResult>
Inheritance
ReadResult
Implements
Inherited Members

Constructors

ReadResult(object?, IReadOnlyList<DebugData>)

The outcome of a debug value read: the selected value exactly as ReadValue returns it, plus one DebugData record per value the reader produced, in read order.

public ReadResult(object? Value, IReadOnlyList<DebugData> Debug)

Parameters

Value object

The value at the path; the same object ReadValue would return for the same path.

Debug IReadOnlyList<DebugData>

The byte range, path, type, and decoded value of every item read.

Properties

Debug

The byte range, path, type, and decoded value of every item read.

public IReadOnlyList<DebugData> Debug { get; init; }

Property Value

IReadOnlyList<DebugData>

Value

The value at the path; the same object ReadValue would return for the same path.

public object? Value { get; init; }

Property Value

object

Methods

Deconstruct(out object?, out IReadOnlyList<DebugData>)

Splits the result into its value and its debug records, in that order.

public void Deconstruct(out object? value, out IReadOnlyList<DebugData> debug)

Parameters

value object

Receives Value.

debug IReadOnlyList<DebugData>

Receives Debug.

Equals(ReadResult?)

public bool Equals(ReadResult? other)

Parameters

other ReadResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ReadResult?, ReadResult?)

public static bool operator ==(ReadResult? left, ReadResult? right)

Parameters

left ReadResult
right ReadResult

Returns

bool

operator !=(ReadResult?, ReadResult?)

public static bool operator !=(ReadResult? left, ReadResult? right)

Parameters

left ReadResult
right ReadResult

Returns

bool