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
BytesReadintSuccessfully copied bytes; the destination suffix is untouched.
FailureMemoryReadFailureNull 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
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
IsComplete
Gets whether every requested byte was copied.
public bool IsComplete { get; }
Property Value
Methods
Deconstruct(out int, out MemoryReadFailure?)
public void Deconstruct(out int BytesRead, out MemoryReadFailure? Failure)
Parameters
BytesReadintFailureMemoryReadFailure
Equals(MemoryReadResult)
public bool Equals(MemoryReadResult other)
Parameters
otherMemoryReadResult
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MemoryReadResult, MemoryReadResult)
public static bool operator ==(MemoryReadResult left, MemoryReadResult right)
Parameters
leftMemoryReadResultrightMemoryReadResult
Returns
operator !=(MemoryReadResult, MemoryReadResult)
public static bool operator !=(MemoryReadResult left, MemoryReadResult right)
Parameters
leftMemoryReadResultrightMemoryReadResult