IndividualEncodingBaseTEncode(BinaryStreamBase, T, T) Method

Encodes value and writes it to the specified binary stream.

Definition

Namespace: SnapDB.Snap.Encoding
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public abstract void Encode(
	BinaryStreamBase stream,
	T prevValue,
	T value
)

Parameters

stream  BinaryStreamBase
The binary stream to write to.
prevValue  T
The previous value for encoding reference, if required by UsesPreviousValue; otherwise, null.
value  T
The value to encode.

Return Value

The number of bytes necessary to encode this key-value pair.

See Also