Home
last modified time | relevance | path

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

/nanopb-3.4.0/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-3.4.0/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-3.4.0/tests/regression/issue_342/
Dtest_extensions.c12 pb_encode_string(stream, (const void*)"abc", 3); in write_string()
/nanopb-3.4.0/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-3.4.0/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-3.4.0/
Dpb_encode.h156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dpb_encode.c715 bool checkreturn pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size) in pb_encode_string() function
864 return pb_encode_string(stream, NULL, 0); in pb_enc_bytes()
873 return pb_encode_string(stream, bytes->bytes, (size_t)bytes->size); in pb_enc_bytes()
926 return pb_encode_string(stream, (const pb_byte_t*)str, size); in pb_enc_string()
950 return pb_encode_string(stream, (const pb_byte_t*)field->pData, (size_t)field->data_size); in pb_enc_fixed_length_bytes()
/nanopb-3.4.0/spm_headers/nanopb/
Dpb_encode.h156 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
/nanopb-3.4.0/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-3.4.0/docs/
Dreference.md645 #### pb_encode_string subsubsection
650 bool pb_encode_string(pb_ostream_t *stream, const pb_byte_t *buffer, size_t size);
Dconcepts.md291 return pb_encode_string(stream, (uint8_t*)str, strlen(str));