Home
last modified time | relevance | path

Searched refs:pb_encode_string (Results 1 – 17 of 17) sorted by relevance

/external/nanopb-c/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c40 pb_encode_string(stream, *arg, strlen(*arg)); in write_string()
116 pb_encode_string(stream, 0, 0) && in write_repeated_string()
118 pb_encode_string(stream, 0, 0) && in write_repeated_string()
120 pb_encode_string(stream, 0, 0) && in write_repeated_string()
122 pb_encode_string(stream, 0, 0) && in write_repeated_string()
124 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/
Dencode_alltypes_callback.c40 pb_encode_string(stream, *arg, strlen(*arg)); in write_string()
116 pb_encode_string(stream, 0, 0) && in write_repeated_string()
118 pb_encode_string(stream, 0, 0) && in write_repeated_string()
120 pb_encode_string(stream, 0, 0) && in write_repeated_string()
122 pb_encode_string(stream, 0, 0) && in write_repeated_string()
124 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/external/nanopb-c/tests/alltypes_callback/
Dencode_alltypes_callback.c40 pb_encode_string(stream, *arg, strlen(*arg)); in write_string()
116 pb_encode_string(stream, 0, 0) && in write_repeated_string()
118 pb_encode_string(stream, 0, 0) && in write_repeated_string()
120 pb_encode_string(stream, 0, 0) && in write_repeated_string()
122 pb_encode_string(stream, 0, 0) && in write_repeated_string()
124 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/external/grpc-grpc/third_party/nanopb/tests/callbacks/
Dencode_callbacks.c16 return pb_encode_string(stream, (uint8_t*)str, strlen(str)); in encode_string()
57 if (!pb_encode_string(stream, (uint8_t*)str[i], strlen(str[i]))) in encode_repeatedstring()
/external/nanopb-c/tests/callbacks/
Dencode_callbacks.c16 return pb_encode_string(stream, (uint8_t*)str, strlen(str)); in encode_string()
57 if (!pb_encode_string(stream, (uint8_t*)str[i], strlen(str[i]))) in encode_repeatedstring()
/external/grpc-grpc/third_party/nanopb/
Dpb_encode.c513 bool checkreturn pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) in pb_encode_string() function
644 return pb_encode_string(stream, (const pb_byte_t*)src, field->data_size); in pb_enc_bytes()
651 return pb_encode_string(stream, NULL, 0); in pb_enc_bytes()
660 return pb_encode_string(stream, bytes->bytes, bytes->size); in pb_enc_bytes()
686 return pb_encode_string(stream, (const pb_byte_t*)src, size); in pb_enc_string()
Dpb_encode.h133 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
/external/grpc-grpc/src/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_util.cc81 return pb_encode_string(stream, GRPC_SLICE_START_PTR(*slice), in encode_string_or_bytes_cb()
104 if (!pb_encode_string(stream, GRPC_SLICE_START_PTR(*slice), in encode_repeated_string_cb()
/external/nanopb-c/
Dpb_encode.c674 bool checkreturn pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) in pb_encode_string() function
819 return pb_encode_string(stream, NULL, 0); in pb_enc_bytes()
828 return pb_encode_string(stream, bytes->bytes, bytes->size); in pb_enc_bytes()
854 return pb_encode_string(stream, (const pb_byte_t*)src, size); in pb_enc_string()
867 return pb_encode_string(stream, (const pb_byte_t*)src, field->data_size); in pb_enc_fixed_length_bytes()
Dpb_encode.h147 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
/external/grpc-grpc/third_party/nanopb/tests/encode_unittests/
Dencode_unittests.c120 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd", 4), "\x04""abcd")); in main()
121 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd\x00", 5), "\x05""abcd\x00")); in main()
122 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"", 0), "\x00")); in main()
/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c120 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd", 4), "\x04""abcd")); in main()
121 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd\x00", 5), "\x05""abcd\x00")); in main()
122 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"", 0), "\x00")); in main()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc87 return pb_encode_string(stream, reinterpret_cast<uint8_t*>(str), strlen(str)); in encode_string()
/external/grpc-grpc/third_party/nanopb/docs/
Dreference.rst526 pb_encode_string section in pb_encode.h
530 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dconcepts.rst209 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
/external/nanopb-c/docs/
Dreference.rst536 pb_encode_string section in pb_encode.h
540 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dconcepts.rst215 return pb_encode_string(stream, (uint8_t*)str, strlen(str));