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

Function pn_encoder_writef32

c/src/core/encoder.c:171–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static inline void pn_encoder_writef32(pn_encoder_t *encoder, uint32_t value)
172{
173 if (pn_encoder_remaining(encoder) >= 4) {
174 char* position = encoder->output+encoder->position;
175 position[0] = 0xFF & (value >> 24);
176 position[1] = 0xFF & (value >> 16);
177 position[2] = 0xFF & (value >> 8);
178 position[3] = 0xFF & (value );
179 }
180 encoder->position += 4;
181}
182
183static inline void pn_encoder_writef64(pn_encoder_t *encoder, uint64_t value) {
184 if (pn_encoder_remaining(encoder) >= 8) {

Callers 3

pn_encoder_writev32Function · 0.85
pni_encoder_enterFunction · 0.85
pni_encoder_exitFunction · 0.85

Calls 1

pn_encoder_remainingFunction · 0.85

Tested by

no test coverage detected