forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin#31524: refactor: Allow std::byte in Read(LE/BE)
fa83bec refactor: Allow std::byte in Read(LE/BE) (MarcoFalke) Pull request description: Starting with C++17, `std::byte` is often (not always) a better choice over `uint8_t` for new code. However, the existing codebase discourages the use of `std::byte`, when helpers such as `ReadLE32` are used. This is because calling code will be cluttered with byte-casts. Fix it by allowing `std::byte` pointers in `ReadLE32` (and friends). ACKs for top commit: sipa: utACK fa83bec fjahr: Code review ACK fa83bec theuni: utACK fa83bec l0rinc: ACK fa83bec Tree-SHA512: 83604dc9df9ad447ad1b6f81f1e1844554c2c5331fcb78bdba1300e050d9dcbe9cf7a1b2dd250772bb23a8bf02a4ec26441012fe2f4bcc670ef31c15151adb15
- Loading branch information
Showing
2 changed files
with
39 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters