Write a 2-byte big-endian value
| 286 | |
| 287 | // Write a 2-byte big-endian value |
| 288 | static void put_u16(uint8_t *buf, uint16_t val) { |
| 289 | buf[0] = (uint8_t)(val >> SHIFT_8); |
| 290 | buf[SKIP_ONE] = (uint8_t)(val & BYTE_MASK); |
| 291 | } |
| 292 | |
| 293 | // Write a 4-byte big-endian value |
| 294 | static void put_u32(uint8_t *buf, uint32_t val) { |
no outgoing calls
no test coverage detected