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

Function pni_decoder_single_described

c/src/core/decoder.c:489–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489int pni_decoder_single_described(pn_decoder_t *decoder, pn_data_t *data)
490{
491 if (!pn_decoder_remaining(decoder)) {
492 return PN_UNDERFLOW;
493 }
494
495 uint8_t code = *decoder->position++;;
496
497 if (!pni_allowed_descriptor_code(code)) {
498 return PN_ARG_ERR;
499 }
500
501 int err = pni_decoder_decode_value(decoder, data, code);
502 if (err) return err;
503
504 if (pni_data_parent_type(data) == PN_DESCRIBED && pn_data_siblings(data) > 1) {
505 pn_data_exit(data);
506 }
507 return 0;
508}
509
510int pni_decoder_single(pn_decoder_t *decoder, pn_data_t *data)
511{

Callers 1

pni_decoder_decode_typeFunction · 0.85

Calls 6

pn_decoder_remainingFunction · 0.85
pni_decoder_decode_valueFunction · 0.85
pni_data_parent_typeFunction · 0.85
pn_data_siblingsFunction · 0.85
pn_data_exitFunction · 0.85

Tested by

no test coverage detected