aboutsummaryrefslogtreecommitdiff
path: root/pb_decode.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-15 00:03:35 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-15 00:03:35 +0000
commit7ecaead1261f60de80f205a83546966941b7f543 (patch)
tree45680bae9335ed374090f4aee3812fe80c98accc /pb_decode.h
parent75930fdbca54e79d07a890855a04f161a7cbdce9 (diff)
parent2698e8bf57b179ed5922aeb1217d2e7fd1184075 (diff)
downloadnanopb-c-7ecaead1261f60de80f205a83546966941b7f543.tar.gz
Change-Id: Ic35f7dce5040938cd47b31fec40fd3f9f4eb1830
Diffstat (limited to 'pb_decode.h')
-rw-r--r--pb_decode.h7
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