| 99 | /* Alignment-agnostic encode/decode bytestream to/from little/big endian. */ |
| 100 | |
| 101 | static __inline uint16_t |
| 102 | be16dec(const void *pp) |
| 103 | { |
| 104 | uint8_t const *p = (uint8_t const *)pp; |
| 105 | |
| 106 | return ((p[0] << 8) | p[1]); |
| 107 | } |
| 108 | |
| 109 | static __inline uint32_t |
| 110 | be32dec(const void *pp) |
no outgoing calls
no test coverage detected