Created
August 18, 2014 12:03
-
-
Save uchan-nos/1dd543e01a2fcea7946f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| uint32_t Read32(const char* data) { | |
| return static_cast<unsigned char>(data[0]) | |
| | (static_cast<unsigned char>(data[1]) << 8u) | |
| | (static_cast<unsigned char>(data[2]) << 16u) | |
| | (static_cast<unsigned char>(data[3]) << 24u); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment