GenericEncodedNodeTKey, TValueDecodeRecord Method

Decodes a key-value record from a binary stream.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected int DecodeRecord(
	byte* stream,
	TKey prevKey,
	TValue prevValue,
	TKey currentKey,
	TValue currentValue
)

Parameters

stream  Byte*
A pointer to the binary stream containing the encoded record.
prevKey  TKey
The previous key in the sequence.
prevValue  TValue
The previous value in the sequence.
currentKey  TKey
The current key to be decoded.
currentValue  TValue
The current value to be decoded.

Return Value

Int32
The number of bytes read from the binary stream as a result of the decoding.

Remarks

This method decodes a key-value record from the specified binary stream using the configured decoding method. It takes the previous key and value as well as the current key and value, which can be used for delta decoding. The method returns the number of bytes read from the stream during decoding.

See Also