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

Function pn_encoder_writef64

c/src/core/encoder.c:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183static inline void pn_encoder_writef64(pn_encoder_t *encoder, uint64_t value) {
184 if (pn_encoder_remaining(encoder) >= 8) {
185 char* position = encoder->output+encoder->position;
186 position[0] = 0xFF & (value >> 56);
187 position[1] = 0xFF & (value >> 48);
188 position[2] = 0xFF & (value >> 40);
189 position[3] = 0xFF & (value >> 32);
190 position[4] = 0xFF & (value >> 24);
191 position[5] = 0xFF & (value >> 16);
192 position[6] = 0xFF & (value >> 8);
193 position[7] = 0xFF & (value );
194 }
195 encoder->position += 8;
196}
197
198static inline void pn_encoder_writef128(pn_encoder_t *encoder, char *value) {
199 if (pn_encoder_remaining(encoder) >= 16) {

Callers 1

pni_encoder_enterFunction · 0.85

Calls 1

pn_encoder_remainingFunction · 0.85

Tested by

no test coverage detected