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
Cleanup and comment the code of network_server example.
[apps/agl-service-can-low-level.git]
/
pb_encode.h
diff --git
a/pb_encode.h
b/pb_encode.h
index
900994a
..
f82bac8
100644
(file)
--- a/
pb_encode.h
+++ b/
pb_encode.h
@@
-71,6
+71,10
@@
bool pb_encode(pb_ostream_t *stream, const pb_field_t fields[], const void *src_
*/
bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
*/
bool pb_encode_delimited(pb_ostream_t *stream, const pb_field_t fields[], const void *src_struct);
+/* Encode the message to get the size of the encoded data, but do not store
+ * the data. */
+bool pb_get_encoded_size(size_t *size, const pb_field_t fields[], const void *src_struct);
+
/**************************************
* Functions for manipulating streams *
**************************************/
/**************************************
* Functions for manipulating streams *
**************************************/