X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=pb_encode.h;h=f82bac8f86a0c5f187d02e00aa282481d2b04e05;hb=eaa3c7b157ffd2a308dfc6d35d79309a9aacbcef;hp=900994aaa5bd888c566fa5aef5af90ceea811b91;hpb=287207841db5df93cf7ff9c71a5f1548deb26b09;p=apps%2Fagl-service-can-low-level.git diff --git a/pb_encode.h b/pb_encode.h index 900994aa..f82bac8f 100644 --- 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); +/* 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 * **************************************/