RetroArch
Classes | Functions
serialization.cpp File Reference
#include "serialization.h"
#include "connection.h"
#include "discord_rpc.h"
Include dependency graph for serialization.cpp:

Classes

struct  WriteObject
 
struct  WriteArray
 

Functions

template<typename T >
void NumberToString (char *dest, T number)
 
template<typename T >
void WriteKey (JsonWriter &w, T &k)
 
template<typename T >
void WriteOptionalString (JsonWriter &w, T &k, const char *value)
 
static void JsonWriteNonce (JsonWriter &writer, int nonce)
 
size_t JsonWriteRichPresenceObj (char *dest, size_t maxLen, int nonce, int pid, const DiscordRichPresence *presence)
 
size_t JsonWriteHandshakeObj (char *dest, size_t maxLen, int version, const char *applicationId)
 
size_t JsonWriteSubscribeCommand (char *dest, size_t maxLen, int nonce, const char *evtName)
 
size_t JsonWriteUnsubscribeCommand (char *dest, size_t maxLen, int nonce, const char *evtName)
 
size_t JsonWriteJoinReply (char *dest, size_t maxLen, const char *userId, int reply, int nonce)
 

Function Documentation

◆ JsonWriteHandshakeObj()

size_t JsonWriteHandshakeObj ( char *  dest,
size_t  maxLen,
int  version,
const char *  applicationId 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonWriteJoinReply()

size_t JsonWriteJoinReply ( char *  dest,
size_t  maxLen,
const char *  userId,
int  reply,
int  nonce 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonWriteNonce()

static void JsonWriteNonce ( JsonWriter writer,
int  nonce 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonWriteRichPresenceObj()

size_t JsonWriteRichPresenceObj ( char *  dest,
size_t  maxLen,
int  nonce,
int  pid,
const DiscordRichPresence presence 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonWriteSubscribeCommand()

size_t JsonWriteSubscribeCommand ( char *  dest,
size_t  maxLen,
int  nonce,
const char *  evtName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonWriteUnsubscribeCommand()

size_t JsonWriteUnsubscribeCommand ( char *  dest,
size_t  maxLen,
int  nonce,
const char *  evtName 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NumberToString()

template<typename T >
void NumberToString ( char *  dest,
T  number 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteKey()

template<typename T >
void WriteKey ( JsonWriter w,
T k 
)
Here is the caller graph for this function:

◆ WriteOptionalString()

template<typename T >
void WriteOptionalString ( JsonWriter w,
T k,
const char *  value 
)
Here is the caller graph for this function: