IndividualEncodingBaseTDecode(Byte*, T, T, Boolean) Method

Decodes value from the specified memory stream, returning the decoded data length.

Definition

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

Parameters

stream  Byte*
A pointer to the memory stream.
prevValue  T
The previous value used for decoding reference, if required by UsesPreviousValue; otherwise, null.
value  T
The decoded value.
isEndOfStream  Boolean
Indicates whether the end of the stream has been reached by returning true. If there is not end-of-stream symbol, always returns false.

Return Value

Int32
The number of bytes necessary to decode the next key-value pair.

See Also