Unpacks 4 bytes from a 'uint_fast32_t' into an 'unsigned char' array in "big endian" order. * * Precondition: unsigned char ptr[4] */
| 58 | * Precondition: unsigned char ptr[4] |
| 59 | */ |
| 60 | static inline void WriteBE32(unsigned char* ptr, uint_fast32_t x) { |
| 61 | ptr[0] = (unsigned char)(x >> 24); |
| 62 | ptr[1] = (x >> 16) & 0xff; |
| 63 | ptr[2] = (x >> 8) & 0xff; |
| 64 | ptr[3] = x & 0xff; |
| 65 | } |
| 66 | |
| 67 | /* Unpacks 4 bytes from a 'uint_fast32_t' into an 'unsigned char' array in "little endian" order. |
| 68 | * |
no outgoing calls
no test coverage detected