| 78 | |
| 79 | |
| 80 | static 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 | |
| 100 | static void FromInt64( char *p, int64 x ) |
no outgoing calls
no test coverage detected