argb.cc

来自「c++的guiQt做的开发」· CC 代码 · 共 17 行

CC
17
字号
#include "argb.h"#include <stdlib.h>#include <stdio.h>#include <assert.h>/** Test endianness - if ARGB is compiled with right endianness. Return true if endianness is good, false if bad*/bool endianTest() { assert(sizeof(ARGB<unsigned char>)==4); ARGB<unsigned char> x; x.argb=0x01020304; if (x.a==0x01) return true; return false;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?