/nanopb-3.4.0/tests/encode_unittests/ |
D | encode_unittests.c | 26 return pb_encode_varint(stream, value); in fieldcallback() 36 return pb_encode_varint(stream, *state); in crazyfieldcallback() 80 TEST(WRITES(pb_encode_varint(&s, 0), "\0")); in main() 81 TEST(WRITES(pb_encode_varint(&s, 1), "\1")); in main() 82 TEST(WRITES(pb_encode_varint(&s, 0x7F), "\x7F")); in main() 83 TEST(WRITES(pb_encode_varint(&s, 0x80), "\x80\x01")); in main() 84 TEST(WRITES(pb_encode_varint(&s, UINT32_MAX), "\xFF\xFF\xFF\xFF\x0F")); in main() 85 TEST(WRITES(pb_encode_varint(&s, UINT64_MAX), "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x01")); in main() 93 TEST(WRITES(pb_encode_varint(&s, 0x00000000), "\x00")); in main() 94 TEST(WRITES(pb_encode_varint(&s, 0x00000001), "\x01")); in main() [all …]
|
/nanopb-3.4.0/tests/alltypes_proto3_callback/ |
D | encode_alltypes_callback.c | 16 pb_encode_varint(stream, (intptr_t)*arg); in write_varint() 72 pb_encode_varint(stream, 0) && in write_repeated_varint() 74 pb_encode_varint(stream, 0) && in write_repeated_varint() 76 pb_encode_varint(stream, 0) && in write_repeated_varint() 78 pb_encode_varint(stream, 0) && in write_repeated_varint() 80 pb_encode_varint(stream, (intptr_t)*arg); in write_repeated_varint() 103 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */ in write_repeated_fixed32() 117 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_fixed64() 132 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double() 142 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double()
|
/nanopb-3.4.0/ |
D | pb_encode.h | 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
|
D | pb_encode.c | 173 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in encode_array() 217 pb_encode_varint(stream, 0); in encode_array() 606 bool checkreturn pb_encode_varint(pb_ostream_t *stream, pb_uint64_t value) in pb_encode_varint() function 633 return pb_encode_varint(stream, zigzagged); in pb_encode_svarint() 677 return pb_encode_varint(stream, tag); in pb_encode_tag() 717 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_string() 740 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_submessage() 779 return pb_encode_varint(stream, value); in pb_enc_bool() 800 return pb_encode_varint(stream, value); in pb_enc_varint() 825 return pb_encode_varint(stream, (pb_uint64_t)value); in pb_enc_varint()
|
/nanopb-3.4.0/spm_headers/nanopb/ |
D | pb_encode.h | 142 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
|
/nanopb-3.4.0/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 16 pb_encode_varint(stream, (intptr_t)*arg); in write_varint() 72 pb_encode_varint(stream, 0) && in write_repeated_varint() 74 pb_encode_varint(stream, 0) && in write_repeated_varint() 76 pb_encode_varint(stream, 0) && in write_repeated_varint() 78 pb_encode_varint(stream, 0) && in write_repeated_varint() 80 pb_encode_varint(stream, (intptr_t)*arg); in write_repeated_varint() 103 pb_encode_varint(stream, 5 * 4) && /* Number of bytes */ in write_repeated_fixed32() 117 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_fixed64() 132 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double() 142 pb_encode_varint(stream, 5 * 8) && /* Number of bytes */ in write_repeated_double() [all …]
|
/nanopb-3.4.0/tests/regression/issue_249/ |
D | test.c | 13 if (!pb_encode_varint(stream, 1000 + i)) in write_array()
|
/nanopb-3.4.0/tests/fuzztest/ |
D | random_data.c | 103 pb_encode_varint(&stream, value); in rand_fill_protobuf() 128 pb_encode_varint(&stream, len); in rand_fill_protobuf()
|
/nanopb-3.4.0/tests/callbacks/ |
D | encode_callbacks.c | 24 return pb_encode_varint(stream, 42); in encode_int32()
|
/nanopb-3.4.0/tests/oneof_callback/ |
D | encode_oneof.c | 43 if (!pb_encode_varint(stream, i)) in encode_int32_array()
|
/nanopb-3.4.0/docs/ |
D | reference.md | 570 write, and use [pb_encode_varint](#pb_encode_varint) to write out the 619 #### pb_encode_varint subsubsection 625 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 643 (parameters are the same as for [pb_encode_varint](#pb_encode_varint)
|