Continue work on png writer.
This commit is contained in:
parent
9c8faa534b
commit
86bc0d89f6
19 changed files with 225 additions and 19 deletions
|
@ -13,6 +13,16 @@ int main()
|
|||
auto slice = ByteUtils::getMBitsAtN(byte, 3, 3);
|
||||
std::cout << "Slice is " << ByteUtils::toString(slice) << std::endl;
|
||||
|
||||
uint32_t input {12345678};
|
||||
auto byte0 = ByteUtils::getByteN(input, 0);
|
||||
auto byte1 = ByteUtils::getByteN(input, 1);
|
||||
auto byte2 = ByteUtils::getByteN(input, 2);
|
||||
auto byte3 = ByteUtils::getByteN(input, 3);
|
||||
|
||||
std::cout << "Byte0 is " << ByteUtils::toString(byte0) << std::endl;
|
||||
std::cout << "Byte1 is " << ByteUtils::toString(byte1) << std::endl;
|
||||
std::cout << "Byte2 is " << ByteUtils::toString(byte2) << std::endl;
|
||||
std::cout << "Byte3 is " << ByteUtils::toString(byte3) << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue