diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-15 00:03:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-15 00:03:35 +0000 |
commit | 7ecaead1261f60de80f205a83546966941b7f543 (patch) | |
tree | 45680bae9335ed374090f4aee3812fe80c98accc /pb_decode.h | |
parent | 75930fdbca54e79d07a890855a04f161a7cbdce9 (diff) | |
parent | 2698e8bf57b179ed5922aeb1217d2e7fd1184075 (diff) | |
download | nanopb-c-7ecaead1261f60de80f205a83546966941b7f543.tar.gz |
Snap for 8000352 from 2698e8bf57b179ed5922aeb1217d2e7fd1184075 to sc-d2-releaseandroid-12.1.0_r26android-12.1.0_r25android-12.1.0_r24android-12.1.0_r23android-12.1.0_r18android-12.1.0_r17android-12.1.0_r16android-12.1.0_r15android-12.1.0_r14android-12.1.0_r13android-12.1.0_r12android12L-d2-s8-releaseandroid12L-d2-s7-releaseandroid12L-d2-s6-releaseandroid12L-d2-s5-releaseandroid12L-d2-s4-releaseandroid12L-d2-s3-releaseandroid12L-d2-s2-releaseandroid12L-d2-s1-releaseandroid12L-d2-release
Change-Id: Ic35f7dce5040938cd47b31fec40fd3f9f4eb1830
Diffstat (limited to 'pb_decode.h')
-rw-r--r-- | pb_decode.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pb_decode.h b/pb_decode.h index 398b24a..3577c20 100644 --- a/pb_decode.h +++ b/pb_decode.h @@ -134,7 +134,7 @@ bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *ta /* Skip the field payload data, given the wire type. */ bool pb_skip_field(pb_istream_t *stream, pb_wire_type_t wire_type); -/* Decode an integer in the varint format. This works for bool, enum, int32, +/* Decode an integer in the varint format. This works for enum, int32, * int64, uint32 and uint64 field types. */ #ifndef PB_WITHOUT_64BIT bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); @@ -142,10 +142,13 @@ bool pb_decode_varint(pb_istream_t *stream, uint64_t *dest); #define pb_decode_varint pb_decode_varint32 #endif -/* Decode an integer in the varint format. This works for bool, enum, int32, +/* Decode an integer in the varint format. This works for enum, int32, * and uint32 field types. */ bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest); +/* Decode a bool value in varint format. */ +bool pb_decode_bool(pb_istream_t *stream, bool *dest); + /* Decode an integer in the zig-zagged svarint format. This works for sint32 * and sint64. */ #ifndef PB_WITHOUT_64BIT |