| 2223 | } |
| 2224 | |
| 2225 | static void posix_u32_encode(uint8_t out[4], uint32_t value) { |
| 2226 | out[0] = (uint8_t)(value & 0xffU); |
| 2227 | out[1] = (uint8_t)((value >> 8U) & 0xffU); |
| 2228 | out[2] = (uint8_t)((value >> 16U) & 0xffU); |
| 2229 | out[3] = (uint8_t)((value >> 24U) & 0xffU); |
| 2230 | } |
| 2231 | |
| 2232 | static uint32_t posix_u32_decode(const uint8_t in[4]) { |
| 2233 | return (uint32_t)in[0] | ((uint32_t)in[1] << 8U) | ((uint32_t)in[2] << 16U) | |
no outgoing calls
no test coverage detected