FixedSizeNodeScannerTKey, TValueInternalRead(TKey, TValue, MatchFilterBaseTKey, TValue) Method

Reads and filters key-value pairs from the internal byte buffer, advancing the read pointer.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected override bool InternalRead(
	TKey key,
	TValue value,
	MatchFilterBase<TKey, TValue>? filter
)

Parameters

key  TKey
The key to read the value into.
value  TValue
The value to read from the buffer.
filter  MatchFilterBaseTKey, TValue
Optional filter to determine if the key-value pair is accepted.

Return Value

Boolean
true if a matching key-value pair is found; otherwise, false.

Remarks

This method reads key-value pairs from the internal byte buffer. It deserializes the key and value, advances the read pointer, and increments the index of the next key-value pair. If a filter is provided, it is used to determine if the key-value pair should be accepted. If a matching pair is found, the method returns true; otherwise, it continues reading until a match is found or the end of the buffer is reached, returning false.

See Also