PairEncodingBaseTKey, TValueEncode(Byte*, TKey, TValue, TKey, TValue) Method
Encodes key-value pairs and writes them to a byte pointer.
Namespace: SnapDB.Snap.EncodingAssembly: 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
)
Visual Basic does not support APIs that consume or return unsafe types.
public:
virtual int Encode(
unsigned char* stream,
TKey prevKey,
TValue prevValue,
TKey key,
TValue value
)
JavaScript does not support APIs that consume or return unsafe types.
- 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.
Int32The position of the byte pointer after encoding.