Home
last modified time | relevance | path

Searched refs:pb_write (Results 1 – 6 of 6) sorted by relevance

/external/nanopb-c/
Dpb_encode.c86 bool checkreturn pb_write(pb_ostream_t *stream, const uint8_t *buf, size_t count) in pb_write() function
156 return pb_write(stream, NULL, size); /* Just sizing.. */ in encode_array()
401 return pb_write(stream, (uint8_t*)&value, 1); in pb_encode_varint()
411 return pb_write(stream, buffer, i); in pb_encode_varint()
434 return pb_write(stream, lebytes, 4); in pb_encode_fixed32()
436 return pb_write(stream, (const uint8_t*)value, 4); in pb_encode_fixed32()
453 return pb_write(stream, lebytes, 8); in pb_encode_fixed64()
455 return pb_write(stream, (const uint8_t*)value, 8); in pb_encode_fixed64()
502 return pb_write(stream, buffer, size); in pb_encode_string()
526 return pb_write(stream, NULL, size); /* Just sizing */ in pb_encode_submessage()
Dpb_encode.h109 bool pb_write(pb_ostream_t *stream, const uint8_t *buf, size_t count);
/external/nanopb-c/tests/encode_unittests/
Dencode_unittests.c58 TEST(pb_write(&stream, buffer1, sizeof(buffer1))); in main()
60 TEST(!pb_write(&stream, buffer1, 1)); in main()
69 TEST(pb_write(&stream, buffer1, 5)); in main()
71 TEST(!pb_write(&stream, buffer1, 5)); in main()
/external/nanopb-c/examples/network_server/
Dclient.c69 pb_write(&output, &zero, 1); in listdir()
/external/nanopb-c/docs/
Dconcepts.rst58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read.
77 Otherwise, if *bytes_written* + bytes_to_be_written is larger than *max_size*, pb_write returns fal…
Dreference.rst393 pb_write section in pb_encode.h
397 bool pb_write(pb_ostream_t *stream, const uint8_t *buf, size_t count);
404 …es_written* is not incremented. Depending on the callback used, calling pb_write again after it ha…