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

Function FromUInt32

source/src/osc/osc/OscOutboundPacketStream.cpp:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80static void FromUInt32( char *p, uint32 x )
81{
82#ifdef OSC_HOST_LITTLE_ENDIAN
83 union{
84 osc::uint32 i;
85 char c[4];
86 } u;
87
88 u.i = x;
89
90 p[3] = u.c[0];
91 p[2] = u.c[1];
92 p[1] = u.c[2];
93 p[0] = u.c[3];
94#else
95 *reinterpret_cast<uint32*>(p) = x;
96#endif
97}
98
99
100static void FromInt64( char *p, int64 x )

Callers 2

EndElementMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected