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