Created
November 25, 2017 12:02
-
-
Save valentyn-zaitsev/5b07d82d4afba83635c819a8ea839af4 to your computer and use it in GitHub Desktop.
Uint32_t to uint8_t
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
array[0] = (uint32_tValue & 0x000000ff); | |
array[1] = (uint32_tValue & 0x0000ff00) << 8; | |
array[2] = (uint32_tValue & 0x00ff0000) << 16; | |
array[3] = (uint32_tValue & 0xff000000) << 24; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment