Home
last modified time | relevance | path

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

/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/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/nanopb-c/tests/encode_unittests/
Dencode_unittests.c119 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd", 4), "\x04""abcd")); in main()
120 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"abcd\x00", 5), "\x05""abcd\x00")); in main()
121 TEST(WRITES(pb_encode_string(&s, (const uint8_t*)"", 0), "\x00")); in main()
/external/nanopb-c/
Dpb_encode.c497 bool checkreturn pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size) in pb_encode_string() function
622 return pb_encode_string(stream, NULL, 0); in pb_enc_bytes()
631 return pb_encode_string(stream, bytes->bytes, bytes->size); in pb_enc_bytes()
657 return pb_encode_string(stream, (const uint8_t*)src, size); in pb_enc_string()
Dpb_encode.h133 bool pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size);
/external/nanopb-c/docs/
Dconcepts.rst207 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
Dreference.rst492 pb_encode_string section in pb_encode.h
496 bool pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size);