Skip to content

Commit

Permalink
chore: 🔖 bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
MPThLee committed Feb 27, 2022
1 parent 780eb37 commit c0bde9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "binary-reader"
version = "0.4.3"
version = "0.4.4"
authors = ["MPThLee <[email protected]>"]
publish = true

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> {
let data = self.read_bytes(1)?;
Ok(data[0] != 0)
Expand Down

0 comments on commit c0bde9d

Please sign in to comment.