PairEncodingBaseTKey, TValueDecode(Byte*, TKey, TValue, TKey, TValue, Boolean) Method

Decodes data from a byte pointer, producing key-value pairs and indicating whether it's the end of the stream.

Definition

Namespace: SnapDB.Snap.Encoding
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public virtual int Decode(
	byte* stream,
	TKey prevKey,
	TValue prevValue,
	TKey key,
	TValue value,
	out bool isEndOfStream
)

Parameters

stream  Byte*
The byte pointer from which to decode data.
prevKey  TKey
The previously decoded key.
prevValue  TValue
The previously decoded value.
key  TKey
The decoded key.
value  TValue
The decoded value.
isEndOfStream  Boolean
A boolean indicating whether the end of the stream has been reached.

Return Value

Int32
The position of the byte pointer after decoding.

See Also