diff --git a/CHANGELOG.md b/CHANGELOG.md index 17af0b4..4e0f60e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # CHANGELOG -## 0.4.3 (Current) +## 0.4.4 (Current) + - Documentation and test updates. + - Support boolean. + - Refactor read functions via macro. + * This shouldn't affect existing functionality. + +## 0.4.3 - Support 24, 48, 128 bit unsigned/signed integer. - More tests with macro. diff --git a/Cargo.toml b/Cargo.toml index edffd33..29e9390 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "binary-reader" -version = "0.4.3" +version = "0.4.4" authors = ["MPThLee "] publish = true diff --git a/src/lib.rs b/src/lib.rs index 5dc8a2e..df41f47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -189,6 +189,8 @@ impl BinaryReader { } } + /// Read boolean. + /// Note that anything other than `0x00` is considered `true`. pub fn read_bool(&mut self) -> std::io::Result { let data = self.read_bytes(1)?; Ok(data[0] != 0)