Home
last modified time | relevance | path

Searched refs:pb_decode_varint (Results 1 – 7 of 7) sorted by relevance

/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c79 TEST((s = S("\x00"), pb_decode_varint(&s, &u) && u == 0)); in main()
80 TEST((s = S("\x01"), pb_decode_varint(&s, &u) && u == 1)); in main()
81 TEST((s = S("\xAC\x02"), pb_decode_varint(&s, &u) && u == 300)); in main()
82 TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint(&s, &u) && u == UINT32_MAX)); in main()
83 … TEST((s = S("\xFF\xFF\xFF\xFF\x0F"), pb_decode_varint(&s, (uint64_t*)&i) && i == UINT32_MAX)); in main()
85 pb_decode_varint(&s, (uint64_t*)&i) && i == -1)); in main()
87 pb_decode_varint(&s, &u) && u == UINT64_MAX)); in main()
/external/nanopb-c/
Dpb_decode.h127 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
Dpb_decode.c204 bool checkreturn pb_decode_varint(pb_istream_t *stream, uint64_t *dest) in pb_decode_varint() function
981 if (!pb_decode_varint(stream, &value)) in pb_decode_svarint()
1037 if (!pb_decode_varint(stream, &value)) in pb_dec_varint()
1055 if (!pb_decode_varint(stream, &value)) in pb_dec_uvarint()
/external/nanopb-c/tests/callbacks/
Ddecode_callbacks.c31 if (!pb_decode_varint(stream, &value)) in print_int32()
/external/nanopb-c/tests/alltypes_callback/
Ddecode_alltypes_callback.c21 if (!pb_decode_varint(stream, &value)) in read_varint()
91 if (!pb_decode_varint(stream, &value)) in read_repeated_varint()
/external/nanopb-c/docs/
Dreference.rst682 …For decoding numeric (including enumerated and boolean) values, use `pb_decode_varint`_, `pb_decod…
688 pb_decode_varint section in pb_decode.h
692 bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest);
700 Similar to `pb_decode_varint`_, except that it performs zigzag-decoding on the value. This correspo…
704 (parameters are the same as `pb_decode_varint`_)
743 This function uses `pb_decode_varint`_ to read an integer from the stream. This is interpreted as a…
Dconcepts.rst229 if (!pb_decode_varint(stream, &value))