Lines Matching refs:DE
22 DataExtractor DE(StringRef(numberData, sizeof(numberData)-1), false, 8);
23 EXPECT_FALSE(DE.isValidOffsetForDataOfSize(-2U, 5));
27 DataExtractor DE(StringRef(numberData, sizeof(numberData)-1), false, 8);
30 EXPECT_EQ(0x80U, DE.getU8(&offset));
33 EXPECT_EQ(0x8090U, DE.getU16(&offset));
36 EXPECT_EQ(0x8090FFFFU, DE.getU32(&offset));
39 EXPECT_EQ(0x8090FFFF80000000ULL, DE.getU64(&offset));
42 EXPECT_EQ(0x8090FFFF80000000ULL, DE.getAddress(&offset));
47 EXPECT_EQ(data, DE.getU32(&offset, data, 2));
54 DE = DataExtractor(StringRef(numberData, sizeof(numberData)-1), true, 4);
55 EXPECT_EQ(0x9080U, DE.getU16(&offset));
58 EXPECT_EQ(0xFFFF9080U, DE.getU32(&offset));
61 EXPECT_EQ(0x80FFFF9080ULL, DE.getU64(&offset));
64 EXPECT_EQ(0xFFFF9080U, DE.getAddress(&offset));
68 EXPECT_EQ(data, DE.getU32(&offset, data, 2));
75 DataExtractor DE(StringRef(numberData, sizeof(numberData)-1), false, 8);
78 EXPECT_EQ(-128, DE.getSigned(&offset, 1));
81 EXPECT_EQ(-32624, DE.getSigned(&offset, 2));
84 EXPECT_EQ(-2137980929, DE.getSigned(&offset, 4));
87 EXPECT_EQ(-9182558167379214336LL, DE.getSigned(&offset, 8));
92 DataExtractor DE(StringRef(stringData, sizeof(stringData)-1), false, 8);
95 EXPECT_EQ(stringData, DE.getCStr(&offset));
97 EXPECT_EQ(nullptr, DE.getCStr(&offset));
102 DataExtractor DE(StringRef(leb128data, sizeof(leb128data)-1), false, 8);
105 EXPECT_EQ(9382ULL, DE.getULEB128(&offset));
108 EXPECT_EQ(-7002LL, DE.getSLEB128(&offset));