Table of Contents

Struct MemoryReadResult

Namespace
CStructSharp.Memory
Assembly
CStructSharp.dll

Confirmed copied prefix and the reason an exact request stopped.

public readonly struct MemoryReadResult : IEquatable<MemoryReadResult>
Implements
Inherited Members

Constructors

MemoryReadResult(int, MemoryReadFailure?)

Confirmed copied prefix and the reason an exact request stopped.

public MemoryReadResult(int BytesRead, MemoryReadFailure? Failure)

Parameters

BytesRead int

Successfully copied bytes; the destination suffix is untouched.

Failure MemoryReadFailure

Null on complete input, otherwise the source failure at the first unavailable byte. Cancellation and budgets throw.

Properties

BytesRead

Successfully copied bytes; the destination suffix is untouched.

public int BytesRead { get; init; }

Property Value

int

Failure

Null on complete input, otherwise the source failure at the first unavailable byte. Cancellation and budgets throw.

public MemoryReadFailure? Failure { get; init; }

Property Value

MemoryReadFailure

IsComplete

Gets whether every requested byte was copied.

public bool IsComplete { get; }

Property Value

bool

Methods

Deconstruct(out int, out MemoryReadFailure?)

public void Deconstruct(out int BytesRead, out MemoryReadFailure? Failure)

Parameters

BytesRead int
Failure MemoryReadFailure

Equals(MemoryReadResult)

public bool Equals(MemoryReadResult other)

Parameters

other MemoryReadResult

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 ==(MemoryReadResult, MemoryReadResult)

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

Parameters

left MemoryReadResult
right MemoryReadResult

Returns

bool

operator !=(MemoryReadResult, MemoryReadResult)

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

Parameters

left MemoryReadResult
right MemoryReadResult

Returns

bool