API reference
API reference
Select your platform
No SDKs available
No versions available

WitChunkConverter Class

Extends ILogSource
A static class used to encode and decode wit data chunks consisting of json mixed with binary data.

Properties

IVLogger Logger[Get]

Member Functions

Decodes a buffer of raw bytes and appends chunks
Parameters
buffer
A chunk of bytes to be split into json data and binary data
bufferOffset
The chunk array start index used for decoding
bufferLength
The total number of bytes to be used within chunkData
decodedChunks
A list that newly decoded chunks will be added to
customBinaryDecoder
If exists, binary data will be sent back here instead of the WitChunk

Static Member Functions

Method for decoding raw data into a string
Encodes a chunk by using the jsonString if found, otherwise serializes the json data itself.
Encodes a binary data into a wit stream
Encodes a json token and raw binary data into a single stream
Encodes a json string and raw binary data into a single stream
Encodes a json byte[] and raw binary data into a single stream
Method for encoding a string into raw data
Did you find this page helpful?
Thumbs up icon
Thumbs down icon