MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / FromInt32

Function FromInt32

source/src/osc/osc/OscOutboundPacketStream.cpp:60–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58namespace osc{
59
60static void FromInt32( char *p, int32 x )
61{
62#ifdef OSC_HOST_LITTLE_ENDIAN
63 union{
64 osc::int32 i;
65 char c[4];
66 } u;
67
68 u.i = x;
69
70 p[3] = u.c[0];
71 p[2] = u.c[1];
72 p[1] = u.c[2];
73 p[0] = u.c[3];
74#else
75 *reinterpret_cast<int32*>(p) = x;
76#endif
77}
78
79
80static void FromUInt32( char *p, uint32 x )

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected