As soon as decoder_get_type is invoked, it consumes the TLV-TYPE from input. When ndn_metainfo_tlv_decode determines the TLV-TYPE belongs to the next element in Data, it did not unshift the input back to the decoder. Therefore, the next decoder_get_type in ndn_data_tlv_decode_no_verify is reading subsequent input that is not a TLV-TYPE.
As of 4ee21124638949b35ba5a80ebfd4efd7c0161891,
ndn_data_tlv_decode_no_verify
invokes:Within
ndn_metainfo_tlv_decode
:As soon as
decoder_get_type
is invoked, it consumes the TLV-TYPE from input. Whenndn_metainfo_tlv_decode
determines the TLV-TYPE belongs to the next element in Data, it did not unshift the input back to the decoder. Therefore, the nextdecoder_get_type
inndn_data_tlv_decode_no_verify
is reading subsequent input that is not a TLV-TYPE.