/external/nanopb-c/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()
|
/external/grpc-grpc/third_party/nanopb/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()
|
/external/nanopb-c/tests/alltypes_proto3_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/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/grpc-grpc/third_party/nanopb/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/grpc-grpc/third_party/nanopb/ |
D | pb_encode.c | 154 if (!pb_encode_varint(stream, (uint64_t)size)) in encode_array() 415 bool checkreturn pb_encode_varint(pb_ostream_t *stream, uint64_t value) in pb_encode_varint() function 445 return pb_encode_varint(stream, zigzagged); in pb_encode_svarint() 477 return pb_encode_varint(stream, tag); in pb_encode_tag() 515 if (!pb_encode_varint(stream, (uint64_t)size)) in pb_encode_string() 538 if (!pb_encode_varint(stream, (uint64_t)size)) in pb_encode_submessage() 588 return pb_encode_varint(stream, (uint64_t)value); in pb_enc_varint() 606 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/ |
D | pb_encode.h | 133 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 135 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
|
D | pb_encode.c | 167 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in encode_array() 574 bool checkreturn pb_encode_varint(pb_ostream_t *stream, pb_uint64_t value) in pb_encode_varint() function 604 return pb_encode_varint(stream, zigzagged); in pb_encode_svarint() 638 return pb_encode_varint(stream, tag); in pb_encode_tag() 676 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_string() 699 if (!pb_encode_varint(stream, (pb_uint64_t)size)) in pb_encode_submessage() 754 return pb_encode_varint(stream, (pb_uint64_t)value); in pb_enc_varint() 772 return pb_encode_varint(stream, value); in pb_enc_uvarint()
|
/external/nanopb-c/tests/regression/issue_249/ |
D | test.c | 13 if (!pb_encode_varint(stream, 1000 + i)) in write_array()
|
/external/grpc-grpc/third_party/nanopb/tests/callbacks/ |
D | encode_callbacks.c | 24 return pb_encode_varint(stream, 42); in encode_int32()
|
/external/nanopb-c/tests/callbacks/ |
D | encode_callbacks.c | 24 return pb_encode_varint(stream, 42); in encode_int32()
|
/external/nanopb-c/tests/fuzztest/ |
D | fuzztest.c | 99 pb_encode_varint(&stream, value); in rand_fill_protobuf() 124 pb_encode_varint(&stream, len); in rand_fill_protobuf()
|
/external/grpc-grpc/third_party/nanopb/tests/fuzztest/ |
D | fuzztest.c | 99 pb_encode_varint(&stream, value); in rand_fill_protobuf() 124 pb_encode_varint(&stream, len); in rand_fill_protobuf()
|
/external/nanopb-c/docs/ |
D | reference.rst | 469 …need to know exactly how much data you are going to write, and use `pb_encode_varint`_ to write ou… 516 pb_encode_varint section in pb_encode.h 520 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 534 (parameters are the same as for `pb_encode_varint`_ argument
|
/external/grpc-grpc/third_party/nanopb/docs/ |
D | reference.rst | 459 …need to know exactly how much data you are going to write, and use `pb_encode_varint`_ to write ou… 506 pb_encode_varint section in pb_encode.h 510 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value); 524 (parameters are the same as for `pb_encode_varint`_ argument
|