Lines Matching refs:bytes
22 uint8_t bytes[4] = {0xAA, 0xBB, 0xCC, 0xDD}; in TEST() local
23 std::string result = PoloUtil::BytesToHexString(bytes, 4); in TEST()
28 uint8_t bytes[4] = {0x00, 0xBB, 0xCC, 0xDD}; in TEST() local
29 std::string result = PoloUtil::BytesToHexString(bytes, 4); in TEST()
34 uint8_t* bytes; in TEST() local
35 size_t length = PoloUtil::HexStringToBytes(std::string("AABBCCDD"), bytes); in TEST()
37 ASSERT_EQ(0xAA, bytes[0]); in TEST()
38 ASSERT_EQ(0xBB, bytes[1]); in TEST()
39 ASSERT_EQ(0xCC, bytes[2]); in TEST()
40 ASSERT_EQ(0xDD, bytes[3]); in TEST()
41 delete[] bytes; in TEST()
45 uint8_t* bytes; in TEST() local
46 PoloUtil::IntToBigEndianBytes(0xAABBCCDD, bytes); in TEST()
47 ASSERT_EQ(0xAA, bytes[0]); in TEST()
48 ASSERT_EQ(0xBB, bytes[1]); in TEST()
49 ASSERT_EQ(0xCC, bytes[2]); in TEST()
50 ASSERT_EQ(0xDD, bytes[3]); in TEST()
51 delete[] bytes; in TEST()
55 uint8_t* bytes; in TEST() local
56 PoloUtil::IntToBigEndianBytes(0x00AABB00, bytes); in TEST()
57 ASSERT_EQ(0x00, bytes[0]); in TEST()
58 ASSERT_EQ(0xAA, bytes[1]); in TEST()
59 ASSERT_EQ(0xBB, bytes[2]); in TEST()
60 ASSERT_EQ(0x00, bytes[3]); in TEST()
61 delete[] bytes; in TEST()
65 uint8_t bytes[4] = {0xAA, 0xBB, 0xCC, 0xDD}; in TEST() local
66 const uint32_t value = PoloUtil::BigEndianBytesToInt(bytes); in TEST()
71 uint8_t bytes[4] = {0x00, 0xAA, 0xBB, 0x00}; in TEST() local
72 const uint32_t value = PoloUtil::BigEndianBytesToInt(bytes); in TEST()