Home
last modified time | relevance | path

Searched refs:pb_encode_varint (Results 1 – 16 of 16) sorted by relevance

/external/grpc-grpc/third_party/nanopb/tests/encode_unittests/
Dencode_unittests.c26 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/encode_unittests/
Dencode_unittests.c26 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/
Dencode_alltypes_callback.c16 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/
Dencode_alltypes_callback.c16 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/
Dencode_alltypes_callback.c16 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/
Dpb_encode.c154 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()
Dpb_encode.h126 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
/external/nanopb-c/
Dpb_encode.c167 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()
Dpb_encode.h133 bool pb_encode_varint(pb_ostream_t *stream, uint64_t value);
135 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
/external/nanopb-c/tests/regression/issue_249/
Dtest.c13 if (!pb_encode_varint(stream, 1000 + i)) in write_array()
/external/grpc-grpc/third_party/nanopb/tests/callbacks/
Dencode_callbacks.c24 return pb_encode_varint(stream, 42); in encode_int32()
/external/nanopb-c/tests/callbacks/
Dencode_callbacks.c24 return pb_encode_varint(stream, 42); in encode_int32()
/external/nanopb-c/tests/fuzztest/
Dfuzztest.c99 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/
Dfuzztest.c99 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/docs/
Dreference.rst459 …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
/external/nanopb-c/docs/
Dreference.rst469 …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