24#define MAX_OSC_MSG_LEN 1024
27static void OSC_BSWAPINTMEM(
void *buf)
30 char tmp=p[0]; p[0]=p[3]; p[3]=tmp;
31 tmp=p[1]; p[1]=p[2]; p[2]=tmp;
34#define OSC_MAKEINTMEM4BE(x) OSC_BSWAPINTMEM(x)
44 bool PushWord(
const char* word);
45 bool PushInt(
int val);
46 bool PushIntArg(
int val);
47 bool PushFloatArg(
float val);
48 bool PushStringArg(
const char* val);
49 const char* GetBuffer(
int* len);
50 void DebugDump(
const char* label,
char* dump,
int dumplen);
52 char m_msg[MAX_OSC_MSG_LEN];
53 char m_types[MAX_OSC_MSG_LEN];
54 char m_args[MAX_OSC_MSG_LEN];
67 const char* GetMessage()
const;
68 int GetNumArgs()
const;
69 const char* PopWord();
70 const void* GetIndexedArg(
int idx,
char* typeOut)
const;
71 const int* PopIntArg(
bool peek);
72 const float* PopFloatArg(
bool peek);
73 const char* PopStringArg(
bool peek);
74 void DebugDump(
const char* label,
char* dump,
int dumplen);