• Home
  • Raw
  • Download

Lines Matching refs:DE

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