GenericEncodedNodeTKey, TValueDecodeRecord Method
Decodes a key-value record from a binary stream.
Namespace: SnapDB.Snap.TreeAssembly: 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
)
Visual Basic does not support APIs that consume or return unsafe types.
protected:
int DecodeRecord(
unsigned char* stream,
TKey prevKey,
TValue prevValue,
TKey currentKey,
TValue currentValue
)
JavaScript does not support APIs that consume or return unsafe types.
- 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.
Int32The number of bytes read from the binary stream as a result of the decoding.
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.