| 55 | } |
| 56 | |
| 57 | inline ByteOrder platformByteOrder() { |
| 58 | #if STAR_LITTLE_ENDIAN |
| 59 | return ByteOrder::LittleEndian; |
| 60 | #else |
| 61 | return ByteOrder::BigEndian; |
| 62 | #endif |
| 63 | } |
| 64 | |
| 65 | inline void swapByteOrder(void* ptr, size_t len) { |
| 66 | uint8_t* data = static_cast<uint8_t*>(ptr); |
no outgoing calls
no test coverage detected