Home
last modified time | relevance | path

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

/nanopb-3.4.0/tests/oneof_callback/
Ddecode_oneof.c26 int strlen = istream->bytes_left; in SubMsg3_callback() local
28 if (strlen > sizeof(buffer) - 1) in SubMsg3_callback()
31 buffer[strlen] = '\0'; in SubMsg3_callback()
33 if (!pb_read(istream, buffer, strlen)) in SubMsg3_callback()
58 int strlen = stream->bytes_left; in print_string() local
60 if (strlen > sizeof(buffer) - 1) in print_string()
63 buffer[strlen] = '\0'; in print_string()
65 if (!pb_read(stream, buffer, strlen)) in print_string()
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/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/extra/
Dpb_syshdr.h80 static size_t strlen( const char * s ) in strlen() function
/nanopb-3.4.0/tests/fuzztest/
Dvalidation.c41 assert(strlen(pData) + 1 <= iter->data_size); in validate_static()
116 assert(strlen(str) + 1 <= get_allocation_size(str)); in validate_pointer()
/nanopb-3.4.0/examples/network_server/
Dclient.c66 if (strlen(path) + 1 > sizeof(request.path)) in listdir()
/nanopb-3.4.0/tests/alltypes_proto3_callback/
Dencode_alltypes_callback.c52 pb_encode_string(stream, *arg, strlen(*arg)); in write_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()
161 pb_encode_string(stream, *arg, strlen(*arg)); in write_repeated_string()
/nanopb-3.4.0/docs/
Dindex.md124 1) `string.h`, with these functions: `strlen`, `memcpy`, `memset`
Dconcepts.md291 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
Dreference.md656 | size | Number of bytes in the string. Pass `strlen(s)` for strings.