IndividualEncodingBaseTEncode(Byte*, T, T) Method

Encodes value and writes it to the specified memory stream, returning the encoded data length.

Definition

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

Parameters

stream  Byte*
A pointer to the memory stream.
prevValue  T
The previous value for encoding reference, if required by UsesPreviousValue; otherwise, null.
value  T
The value to encode.

Return Value

Int32
The length required to encode the key-value pair in bytes.

See Also