Home
last modified time | relevance | path

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

/nanopb-2.7.6/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()
/nanopb-2.7.6/tests/oneof_callback/
Dencode_oneof.c26 return pb_encode_string(ostream, (const uint8_t*)str, strlen(str)); in SubMsg3_callback()
56 return pb_encode_string(stream, (const uint8_t*)str, strlen(str)); in encode_string()
/nanopb-2.7.6/tests/regression/issue_342/
Dtest_extensions.c12 pb_encode_string(stream, (const void*)"abc", 3); in write_string()
/nanopb-2.7.6/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c52 pb_encode_string(stream, *arg, strlen(*arg)); in write_string()
153 pb_encode_string(stream, 0, 0) && in write_repeated_string()
155 pb_encode_string(stream, 0, 0) && in write_repeated_string()
157 pb_encode_string(stream, 0, 0) && in write_repeated_string()
159 pb_encode_string(stream, 0, 0) && in write_repeated_string()
161 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/nanopb-2.7.6/tests/alltypes_callback/
Dencode_alltypes_callback.c52 pb_encode_string(stream, *arg, strlen(*arg)); in write_string()
153 pb_encode_string(stream, 0, 0) && in write_repeated_string()
155 pb_encode_string(stream, 0, 0) && in write_repeated_string()
157 pb_encode_string(stream, 0, 0) && in write_repeated_string()
159 pb_encode_string(stream, 0, 0) && in write_repeated_string()
161 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/nanopb-2.7.6/
Dpb_encode.h156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dpb_encode.c702 bool checkreturn pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) in pb_encode_string() function
851 return pb_encode_string(stream, NULL, 0); in pb_enc_bytes()
860 return pb_encode_string(stream, bytes->bytes, (size_t)bytes->size); in pb_enc_bytes()
913 return pb_encode_string(stream, (const pb_byte_t*)str, size); in pb_enc_string()
937 return pb_encode_string(stream, (const pb_byte_t*)field->pData, (size_t)field->data_size); in pb_enc_fixed_length_bytes()
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_encode.h156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
/nanopb-2.7.6/tests/encode_unittests/
Dencode_unittests.c167 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd", 4), "\x04""abcd")); in main()
168 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd\x00", 5), "\x05""abcd\x00")); in main()
169 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"", 0), "\x00")); in main()
/nanopb-2.7.6/docs/
Dreference.md632 #### pb_encode_string subsubsection
637 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dconcepts.md285 return pb_encode_string(stream, (uint8_t*)str, strlen(str));