Table of Contents

Class MemoryFieldProbe<T>

Namespace
CStructSharp.Memory
Assembly
CStructSharp.dll

One immutable typed field requirement and a caller-owned predicate, evaluated over captured bytes.

public sealed class MemoryFieldProbe<T>

Type Parameters

T

Exact managed field type.

Inheritance
MemoryFieldProbe<T>
Inherited Members

Remarks

Compose probes in application order. No callback is reordered, skipped or converted into statistical confidence. Predicates must themselves be safe for concurrent reuse when callers share a probe.

Constructors

MemoryFieldProbe(string, MemoryFieldReader<T>, Func<T, bool>)

Prepares a named requirement without retaining bytes or operation state.

public MemoryFieldProbe(string ruleId, MemoryFieldReader<T> reader, Func<T, bool> predicate)

Parameters

ruleId string

Stable application rule identifier for retained evidence.

reader MemoryFieldReader<T>

Schema-bound fixed field reader.

predicate Func<T, bool>

Application predicate; invoked only after every storage byte is known. Exceptions propagate.

Properties

Reader

Gets the prepared reader, including required field path and byte extent.

public MemoryFieldReader<T> Reader { get; }

Property Value

MemoryFieldReader<T>

RuleId

Gets the identifier connecting fast checks to retained application evidence.

public string RuleId { get; }

Property Value

string

Methods

Evaluate(ReadOnlySpan<byte>, MemoryAccessContext, MemoryValidity?)

Evaluates exactly this rule, distinguishing unknown storage from rejection.

public MemoryProbeOutcome Evaluate(ReadOnlySpan<byte> bytes, MemoryAccessContext context, MemoryValidity? validity = null)

Parameters

bytes ReadOnlySpan<byte>

Stable bytes beginning at the root coordinate.

context MemoryAccessContext

Shared local work budget and cancellation.

validity MemoryValidity

Optional known-byte intervals of this buffer.

Returns

MemoryProbeOutcome

Local match, mismatch or unavailable evidence.