Searched refs:pb_encode_string (Results 1 – 7 of 7) sorted by relevance
/external/nanopb-c/tests/alltypes_callback/ |
D | encode_alltypes_callback.c | 40 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/ |
D | encode_callbacks.c | 16 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/ |
D | encode_unittests.c | 119 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/ |
D | pb_encode.c | 497 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()
|
D | pb_encode.h | 133 bool pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size);
|
/external/nanopb-c/docs/ |
D | concepts.rst | 207 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
|
D | reference.rst | 492 pb_encode_string section in pb_encode.h 496 bool pb_encode_string(pb_ostream_t *stream, const uint8_t *buffer, size_t size);
|