IndividualEncodingBaseTEncode(Byte*, T, T) Method
Encodes value and writes it to the specified memory stream, returning the encoded data length.
Namespace: SnapDB.Snap.EncodingAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public virtual int Encode(
byte* stream,
T prevValue,
T value
)
Visual Basic does not support APIs that consume or return unsafe types.
public:
virtual int Encode(
unsigned char* stream,
T prevValue,
T value
)
JavaScript does not support APIs that consume or return unsafe types.
- 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.
Int32The length required to encode the key-value pair in bytes.