Lines Matching refs:data
36 unsigned char data[5];
37 endian::write<int32_t, big, unaligned>(data, -1362446643);
38 EXPECT_EQ(data[0], 0xAE);
39 EXPECT_EQ(data[1], 0xCA);
40 EXPECT_EQ(data[2], 0xB6);
41 EXPECT_EQ(data[3], 0xCD);
42 endian::write<int32_t, big, unaligned>(data + 1, -1362446643);
43 EXPECT_EQ(data[1], 0xAE);
44 EXPECT_EQ(data[2], 0xCA);
45 EXPECT_EQ(data[3], 0xB6);
46 EXPECT_EQ(data[4], 0xCD);
48 endian::write<int32_t, little, unaligned>(data, -1362446643);
49 EXPECT_EQ(data[0], 0xCD);
50 EXPECT_EQ(data[1], 0xB6);
51 EXPECT_EQ(data[2], 0xCA);
52 EXPECT_EQ(data[3], 0xAE);
53 endian::write<int32_t, little, unaligned>(data + 1, -1362446643);
54 EXPECT_EQ(data[1], 0xCD);
55 EXPECT_EQ(data[2], 0xB6);
56 EXPECT_EQ(data[3], 0xCA);
57 EXPECT_EQ(data[4], 0xAE);