EndianTest.cpp | 24 unsigned char bigval[] = {0x00, 0x01, 0x02, 0x03, 0x04}; local 27 EXPECT_EQ(BigAsHost, (endian::read<int32_t, big, unaligned>(bigval))); 31 EXPECT_EQ((endian::read<int32_t, big, unaligned>(bigval + 1)), 38 unsigned char bigval[] = {0x00, 0x00, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xc0}; local 42 EXPECT_EQ((endian::readAtBitAlignment<int, big, unaligned>(&bigval[0], 6)), 75 unsigned char bigval[8] = {0x00}; local 76 endian::writeAtBitAlignment<int32_t, big, unaligned>(bigval, (int)0xffffaaaa, 78 EXPECT_EQ(bigval[0], 0xff); 79 EXPECT_EQ(bigval[1], 0xfa); 80 EXPECT_EQ(bigval[2], 0xaa) [all...] |