Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Setting version to 0.2.3-dev
[apps/agl-service-can-low-level.git]
/
pb_encode.h
diff --git
a/pb_encode.h
b/pb_encode.h
index
d9e0336
..
04bdabe
100644
(file)
--- a/
pb_encode.h
+++ b/
pb_encode.h
@@
-32,6
+32,10
@@
extern "C" {
*/
bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
*/
bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
+/* Same as pb_encode, but prepends the length of the message as a varint.
+ * Corresponds to writeDelimitedTo() in Google's protobuf API.
+ */
+bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
/**************************************
* Functions for manipulating streams *
/**************************************
* Functions for manipulating streams *