| 58 | namespace osc{ |
| 59 | |
| 60 | static 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 | |
| 80 | static void FromUInt32( char *p, uint32 x ) |
no outgoing calls
no test coverage detected