PairEncodingBaseTKey, TValueEncode(Byte*, TKey, TValue, TKey, TValue) Method

Encodes key-value pairs and writes them to a byte pointer.

Definition

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

Parameters

stream  Byte*
The byte pointer to which to write encoded data.
prevKey  TKey
The previously encoded key.
prevValue  TValue
The previously encoded value.
key  TKey
The key to be encoded and written.
value  TValue
The value to be encoded and written.

Return Value

Int32
The position of the byte pointer after encoding.

See Also