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

Method AsInt32Unchecked

source/src/osc/osc/OscReceivedElements.cpp:237–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235
236
237int32 ReceivedMessageArgument::AsInt32Unchecked() const
238{
239#ifdef OSC_HOST_LITTLE_ENDIAN
240 union{
241 osc::int32 i;
242 char c[4];
243 } u;
244
245 u.c[0] = argumentPtr_[3];
246 u.c[1] = argumentPtr_[2];
247 u.c[2] = argumentPtr_[1];
248 u.c[3] = argumentPtr_[0];
249
250 return u.i;
251#else
252 return *(int32*)argument_;
253#endif
254}
255
256
257float ReceivedMessageArgument::AsFloat() const

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected