MCPcopy Create free account
hub / github.com/apache/qpid-proton / pn_encoder_writef16

Function pn_encoder_writef16

c/src/core/encoder.c:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static 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
171static inline void pn_encoder_writef32(pn_encoder_t *encoder, uint32_t value)
172{

Callers 1

pni_encoder_enterFunction · 0.85

Calls 1

pn_encoder_remainingFunction · 0.85

Tested by

no test coverage detected