OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pb_encode_string
(Results
1 - 5
of
5
) sorted by null
/external/nanopb-c/tests/callbacks/
encode_callbacks.c
16
return
pb_encode_string
(stream, (uint8_t*)str, strlen(str));
57
if (!
pb_encode_string
(stream, (uint8_t*)str[i], strlen(str[i])))
/external/nanopb-c/
pb_encode.h
133
bool
pb_encode_string
(pb_ostream_t *stream, const uint8_t *buffer, size_t size);
pb_encode.c
497
bool checkreturn
pb_encode_string
(pb_ostream_t *stream, const uint8_t *buffer, size_t size)
function
622
return
pb_encode_string
(stream, NULL, 0);
631
return
pb_encode_string
(stream, bytes->bytes, bytes->size);
657
return
pb_encode_string
(stream, (const uint8_t*)src, size);
/external/nanopb-c/tests/alltypes_callback/
encode_alltypes_callback.c
40
pb_encode_string
(stream, *arg, strlen(*arg));
116
pb_encode_string
(stream, 0, 0) &&
118
pb_encode_string
(stream, 0, 0) &&
120
pb_encode_string
(stream, 0, 0) &&
122
pb_encode_string
(stream, 0, 0) &&
124
pb_encode_string
(stream, *arg, strlen(*arg));
/external/nanopb-c/tests/encode_unittests/
encode_unittests.c
118
COMMENT("Test
pb_encode_string
")
119
TEST(WRITES(
pb_encode_string
(&s, (const uint8_t*)"abcd", 4), "\x04""abcd"));
120
TEST(WRITES(
pb_encode_string
(&s, (const uint8_t*)"abcd\x00", 5), "\x05""abcd\x00"));
121
TEST(WRITES(
pb_encode_string
(&s, (const uint8_t*)"", 0), "\x00"));
Completed in 43 milliseconds