Table of Contents

Struct MemoryScanWindow

Namespace
CStructSharp.Memory
Assembly
CStructSharp.dll

A synchronous borrowed scan window in one source's logical coordinates.

public readonly ref struct MemoryScanWindow
Inherited Members

Remarks

Bytes are valid only during the callback. OwnedOffset/OwnedLength assign candidate starts exactly once; before/after bytes are context for complete records. Windows never join unknown bytes or different sources. No callback may retain the pooled storage.

Properties

Address

Gets the logical address of the first supplied byte.

public ulong Address { get; }

Property Value

ulong

Bytes

Gets borrowed known bytes; do not retain them beyond the callback.

public ReadOnlySpan<byte> Bytes { get; }

Property Value

ReadOnlySpan<byte>

OwnedLength

Gets the number of owned candidate-start positions. Complete records can extend into following context bytes.

public int OwnedLength { get; }

Property Value

int

OwnedOffset

Gets the first owned candidate-start offset.

public int OwnedOffset { get; }

Property Value

int

Source

Gets the source object distinguishing this address space.

public IMemorySource Source { get; }

Property Value

IMemorySource