Searched refs:pb_encode_varint (Results 1 – 6 of 6) sorted by relevance
/external/nanopb-c/tests/encode_unittests/ |
D | encode_unittests.c | 25 return pb_encode_varint(stream, value); in fieldcallback() 35 return pb_encode_varint(stream, *state); in crazyfieldcallback() 79 TEST(WRITES(pb_encode_varint(&s, 0), "\0")); in main() 80 TEST(WRITES(pb_encode_varint(&s, 1), "\1")); in main() 81 TEST(WRITES(pb_encode_varint(&s, 0x7F), "\x7F")); in main() 82 TEST(WRITES(pb_encode_varint(&s, 0x80), "\x80\x01")); in main() 83 TEST(WRITES(pb_encode_varint(&s, UINT32_MAX), "\xFF\xFF\xFF\xFF\x0F")); in main() 84 TEST(WRITES(pb_encode_varint(&s, UINT64_MAX), "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01")); in main()
|
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 16 pb_encode_varint(stream, (long)*arg); in write_varint() 60 pb_encode_varint(stream, 0) && in write_repeated_varint() 62 pb_encode_varint(stream, 0) && in write_repeated_varint() 64 pb_encode_varint(stream, 0) && in write_repeated_varint() 66 pb_encode_varint(stream, 0) && in write_repeated_varint() 68 pb_encode_varint(stream, (long)*arg); in write_repeated_varint() 91 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */ in write_repeated_fixed32() 105 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_fixed64()
|
/external/nanopb-c/ |
D | pb_encode.c | 152 if (!pb_encode_varint(stream, (uint64_t)size)) in encode_array() 395 bool checkreturn pb_encode_varint(pb_ostream_t *stream, uint64_t value) in pb_encode_varint() function 422 return pb_encode_varint(stream, zigzagged); in pb_encode_svarint() 462 return pb_encode_varint(stream, tag); in pb_encode_tag() 499 if (!pb_encode_varint(stream, (uint64_t)size)) in pb_encode_string() 522 if (!pb_encode_varint(stream, (uint64_t)size)) in pb_encode_submessage() 572 return pb_encode_varint(stream, (uint64_t)value); in pb_enc_varint() 586 return pb_encode_varint(stream, value); in pb_enc_uvarint()
|
D | pb_encode.h | 126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
|
/external/nanopb-c/tests/callbacks/ |
D | encode_callbacks.c | 24 return pb_encode_varint(stream, 42); in encode_int32()
|
/external/nanopb-c/docs/ |
D | reference.rst | 436 …need to know exactly how much data you are going to write, and use `pb_encode_varint`_ to write ou… 472 pb_encode_varint section in pb_encode.h 476 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 490 (parameters are the same as for `pb_encode_varint`_ argument
|