Why Meta Quest?
Design
Develop
API reference
Distribute and grow
Blog
Support
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
AudioClipAudioSource
ImageViewer
Lib
Meta
Audio
Conduit
Net
Voice
Voice
AboutWindow
Audio
Hub
INLPRequestOptions
INLPRequestResponseDecoder
INLPRequestResults
ITranscriptionRequestOptions
ITranscriptionRequestResults
IVoiceRequestOptions
IVoiceRequestResults
Logging
NLPRequest
NLPRequestEvents
NLPRequestResponseEvent
NLPRequestResponseValidatorEvent
Net
Encoding
Wit
Wit
WitChunk
WitChunkConverter
PubSub
WebSockets
Samples
TelemetryUtilities
TranscriptionRequest
TranscriptionRequestEvent
TranscriptionRequestEvents
VSDKHub
VoiceRequest
VoiceRequestEvents
Windows
WitAi
Oculus
Code samples
Downloads
Release notes
Supported platforms
Meta
WitChunkConverter Class
A static class used to encode and decode wit data chunks consisting of json mixed with binary data.
Member Functions
WitChunk
[]
Decode
( byte [] rawData,
int start,
int length )
Decodes an array of chunk data
Parameters
rawData
A chunk of bytes to be split into json data and binary data
start
The chunk array start index used for decoding
length
The total number of bytes to be used within chunkData
Static Member Functions
static string
GetHeaderLog
( byte [] bytes )
Returns a log string for a byte[] by returning the individual bytes for each section. Determines specific settings before returning the log.
static string
GetHeaderLog
( byte [] bytes,
long jsonLength,
long binaryLength,
bool invalid )
Returns a log string for a byte[] by returning the individual bytes for each section.
static string
GetByteString
( byte [] bytes,
int start,
int length,
bool reverse )
Returns a string of all bytes within an array
static string
GetBitString
( byte [] bytes,
int start,
int length,
bool reverse )
Returns a string of the individual bits within a byte array
static string
DecodeString
( byte [] rawData,
int offset,
int length )
Method for decoding raw data into a string
static byte []
Encode
(
WitChunk
chunkData )
Encodes a chunk by using the jsonString if found, otherwise serializes the json data itself.
static byte []
Encode
( byte [] binaryData )
Encodes a binary data into a wit stream
static byte []
Encode
(
WitResponseNode
jsonToken,
byte [] binaryData )
Encodes a json token and raw binary data into a single stream
static byte []
Encode
( string jsonString,
byte [] binaryData )
Encodes a json string and raw binary data into a single stream
static byte []
Encode
( byte [] jsonData,
byte [] binaryData )
Encodes a json byte[] and raw binary data into a single stream
static byte []
EncodeString
( string stringData )
Method for encoding a string into raw data
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
© 2026 Meta