Loading...
Searching...
No Matches
AccelByte::MessageParser Class Reference

Static Public Member Functions

static bool MoveToEndQuote (const TCHAR *&Cursor)
static bool MoveToEndObject (const TCHAR *&Cursor)
static FString EscapeString (const FString &InString, bool bIsEnclosedWithQuote=false)
static bool ParseString (const TCHAR *&Cursor, FString &OutJsonString)
static bool ParseObject (const TCHAR *&Cursor, FString &OutJsonString)
static bool ParseArrayOfObject (const TCHAR *&Cursor, FString &OutJsonString)
static bool ParseArrayOfString (const TCHAR *&Cursor, FString &OutJsonString)
static void ProcessFragmentedMessage (const FString &InMessage, const FString &InEnvelopeStart, const FString &InEnvelopeEnd, FString &InOutEnvelopeBuffer, FString &OutMessage, bool &OutIsMessageEnd)
 Process enveloped message and join the message if fragmented.

Member Function Documentation

◆ ProcessFragmentedMessage()

void AccelByte::MessageParser::ProcessFragmentedMessage ( const FString & InMessage,
const FString & InEnvelopeStart,
const FString & InEnvelopeEnd,
FString & InOutEnvelopeBuffer,
FString & OutMessage,
bool & OutIsMessageEnd )
static

Process enveloped message and join the message if fragmented.

Parameters
InMessageenveloped message to process
InEnvelopeStartstring to use to mark start of envelope
InEnvelopeEndstring to use to mark end of envelope
InOutEnvelopeBufferTemporary buffer variable for message on process.
OutMessagefull joined message without envelope, will out empty string if message not whole yet.
OutIsMessageEndtrue if reached end of message and message is whole.