| 159 | } |
| 160 | |
| 161 | static inline void pn_encoder_writef16(pn_encoder_t *encoder, uint16_t value) |
| 162 | { |
| 163 | if (pn_encoder_remaining(encoder) >= 2) { |
| 164 | char* position = encoder->output+encoder->position; |
| 165 | position[0] = 0xFF & (value >> 8); |
| 166 | position[1] = 0xFF & (value ); |
| 167 | } |
| 168 | encoder->position += 2; |
| 169 | } |
| 170 | |
| 171 | static inline void pn_encoder_writef32(pn_encoder_t *encoder, uint32_t value) |
| 172 | { |
no test coverage detected