• Home
  • Raw
  • Download

Lines Matching refs:offset

21   lldb::offset_t offset;  in TEST()  local
23 offset = 0; in TEST()
24 ASSERT_EQ(buffer[1], LE.GetMaxU64Bitfield(&offset, sizeof(buffer), 8, 8)); in TEST()
25 offset = 0; in TEST()
26 ASSERT_EQ(buffer[1], BE.GetMaxU64Bitfield(&offset, sizeof(buffer), 8, 8)); in TEST()
27 offset = 0; in TEST()
29 LE.GetMaxU64Bitfield(&offset, sizeof(buffer), 64, 0)); in TEST()
30 offset = 0; in TEST()
32 BE.GetMaxU64Bitfield(&offset, sizeof(buffer), 64, 0)); in TEST()
33 offset = 0; in TEST()
35 BE.GetMaxU64Bitfield(&offset, sizeof(buffer), 32, 0)); in TEST()
36 offset = 0; in TEST()
38 BE.GetMaxU64Bitfield(&offset, sizeof(buffer), 36, 0)); in TEST()
40 offset = 0; in TEST()
42 LE.GetMaxS64Bitfield(&offset, sizeof(buffer), 8, 8)); in TEST()
43 offset = 0; in TEST()
45 BE.GetMaxS64Bitfield(&offset, sizeof(buffer), 8, 8)); in TEST()
46 offset = 0; in TEST()
48 LE.GetMaxS64Bitfield(&offset, sizeof(buffer), 64, 0)); in TEST()
49 offset = 0; in TEST()
51 BE.GetMaxS64Bitfield(&offset, sizeof(buffer), 64, 0)); in TEST()
74 lldb::offset_t offset = 1; in TEST() local
75 EXPECT_STREQ("foo", E.GetCStr(&offset)); in TEST()
76 EXPECT_EQ(5U, offset); in TEST()
83 lldb::offset_t offset = 1; in TEST() local
84 EXPECT_STREQ("", E.GetCStr(&offset)); in TEST()
85 EXPECT_EQ(2U, offset); in TEST()
92 lldb::offset_t offset = 1; in TEST() local
93 EXPECT_EQ(nullptr, E.GetCStr(&offset)); in TEST()
94 EXPECT_EQ(1U, offset); in TEST()
101 lldb::offset_t offset = 1; in TEST() local
102 EXPECT_EQ(nullptr, E.GetCStr(&offset)); in TEST()
103 EXPECT_EQ(1U, offset); in TEST()
110 lldb::offset_t offset = 0; in TEST() local
111 EXPECT_STREQ("foo", E.GetCStr(&offset)); in TEST()
112 EXPECT_EQ(4U, offset); in TEST()
121 lldb::offset_t offset; in TEST() local
124 offset = 0; in TEST()
125 EXPECT_EQ(0x0201U, E2.GetMaxU64(&offset, 2)); in TEST()
126 EXPECT_EQ(2U, offset); in TEST()
127 offset = 0; in TEST()
128 EXPECT_EQ(0x0201U, E2.GetAddress(&offset)); in TEST()
129 EXPECT_EQ(2U, offset); in TEST()
132 offset = 0; in TEST()
133 EXPECT_EQ(0x030201U, E5.GetMaxU64(&offset, 3)); in TEST()
134 EXPECT_EQ(3U, offset); in TEST()
135 offset = 3; in TEST()
136 EXPECT_EQ(0x0807060504U, E5.GetAddress(&offset)); in TEST()
137 EXPECT_EQ(8U, offset); in TEST()
140 offset = 0; in TEST()
141 EXPECT_EQ(0x0504030201U, E7.GetMaxU64(&offset, 5)); in TEST()
142 EXPECT_EQ(5U, offset); in TEST()
143 offset = 0; in TEST()
144 EXPECT_EQ(0x07060504030201U, E7.GetAddress(&offset)); in TEST()
145 EXPECT_EQ(7U, offset); in TEST()
154 lldb::offset_t offset; in TEST() local
157 offset = 0; in TEST()
158 EXPECT_EQ(0x01U, LE.GetMaxU64(&offset, 1)); in TEST()
159 EXPECT_EQ(1U, offset); in TEST()
160 offset = 0; in TEST()
161 EXPECT_EQ(0x01U, BE.GetMaxU64(&offset, 1)); in TEST()
162 EXPECT_EQ(1U, offset); in TEST()
165 offset = 1; in TEST()
166 EXPECT_EQ(0x0302U, LE.GetMaxU64(&offset, 2)); in TEST()
167 EXPECT_EQ(3U, offset); in TEST()
168 offset = 1; in TEST()
169 EXPECT_EQ(0x0203U, BE.GetMaxU64(&offset, 2)); in TEST()
170 EXPECT_EQ(3U, offset); in TEST()
173 offset = 0; in TEST()
174 EXPECT_EQ(0x07060504030201U, LE.GetMaxU64(&offset, 7)); in TEST()
175 EXPECT_EQ(7U, offset); in TEST()
176 offset = 0; in TEST()
177 EXPECT_EQ(0x01020304050607U, BE.GetMaxU64(&offset, 7)); in TEST()
178 EXPECT_EQ(7U, offset); in TEST()
181 offset = 0; in TEST()
182 EXPECT_EQ(0x0807060504030201U, LE.GetMaxU64(&offset, 8)); in TEST()
183 EXPECT_EQ(8U, offset); in TEST()
184 offset = 0; in TEST()
185 EXPECT_EQ(0x0102030405060708U, BE.GetMaxU64(&offset, 8)); in TEST()
186 EXPECT_EQ(8U, offset); in TEST()
195 lldb::offset_t offset; in TEST() local
198 offset = 0; in TEST()
199 EXPECT_EQ(0x01, LE.GetMaxS64(&offset, 1)); in TEST()
200 EXPECT_EQ(1U, offset); in TEST()
201 offset = 0; in TEST()
202 EXPECT_EQ(0x01, BE.GetMaxS64(&offset, 1)); in TEST()
203 EXPECT_EQ(1U, offset); in TEST()
206 offset = 0; in TEST()
207 int64_t value = LE.GetMaxS64(&offset, 3); in TEST()
209 EXPECT_EQ(3U, offset); in TEST()
210 offset = 2; in TEST()
211 value = BE.GetMaxS64(&offset, 3); in TEST()
213 EXPECT_EQ(5U, offset); in TEST()
216 offset = 0; in TEST()
217 EXPECT_EQ(0x0807060504830201, LE.GetMaxS64(&offset, 8)); in TEST()
218 EXPECT_EQ(8U, offset); in TEST()
219 offset = 0; in TEST()
220 EXPECT_EQ(0x0102830405060708, BE.GetMaxS64(&offset, 8)); in TEST()
221 EXPECT_EQ(8U, offset); in TEST()
230 lldb::offset_t offset; in TEST() local
233 offset = 0; in TEST()
234 EXPECT_EQ(0x01U, LE.GetMaxU64_unchecked(&offset, 1)); in TEST()
235 EXPECT_EQ(1U, offset); in TEST()
236 offset = 0; in TEST()
237 EXPECT_EQ(0x01U, BE.GetMaxU64_unchecked(&offset, 1)); in TEST()
238 EXPECT_EQ(1U, offset); in TEST()
241 offset = 1; in TEST()
242 EXPECT_EQ(0x0302U, LE.GetMaxU64_unchecked(&offset, 2)); in TEST()
243 EXPECT_EQ(3U, offset); in TEST()
244 offset = 1; in TEST()
245 EXPECT_EQ(0x0203U, BE.GetMaxU64_unchecked(&offset, 2)); in TEST()
246 EXPECT_EQ(3U, offset); in TEST()
249 offset = 0; in TEST()
250 EXPECT_EQ(0x07060504030201U, LE.GetMaxU64_unchecked(&offset, 7)); in TEST()
251 EXPECT_EQ(7U, offset); in TEST()
252 offset = 0; in TEST()
253 EXPECT_EQ(0x01020304050607U, BE.GetMaxU64_unchecked(&offset, 7)); in TEST()
254 EXPECT_EQ(7U, offset); in TEST()
257 offset = 0; in TEST()
258 EXPECT_EQ(0x0807060504030201U, LE.GetMaxU64_unchecked(&offset, 8)); in TEST()
259 EXPECT_EQ(8U, offset); in TEST()
260 offset = 0; in TEST()
261 EXPECT_EQ(0x0102030405060708U, BE.GetMaxU64_unchecked(&offset, 8)); in TEST()
262 EXPECT_EQ(8U, offset); in TEST()
272 lldb::offset_t offset; in TEST() local
276 offset = 0; in TEST()
277 EXPECT_EQ(expected, LE.GetSLEB128(&offset)); in TEST()
278 EXPECT_EQ(9U, offset); in TEST()
279 offset = 0; in TEST()
280 EXPECT_EQ(expected, BE.GetSLEB128(&offset)); in TEST()
281 EXPECT_EQ(9U, offset); in TEST()
291 lldb::offset_t offset; in TEST() local
295 offset = 0; in TEST()
296 EXPECT_EQ(expected, LE.GetULEB128(&offset)); in TEST()
297 EXPECT_EQ(9U, offset); in TEST()
298 offset = 0; in TEST()
299 EXPECT_EQ(expected, BE.GetULEB128(&offset)); in TEST()
300 EXPECT_EQ(9U, offset); in TEST()
305 lldb::offset_t offset; in TEST() local
312 offset = 0; in TEST()
313 EXPECT_DOUBLE_EQ(expected, LE.GetFloat(&offset)); in TEST()
314 EXPECT_EQ(4U, offset); in TEST()
321 offset = 0; in TEST()
322 EXPECT_DOUBLE_EQ(expected, BE.GetFloat(&offset)); in TEST()
323 EXPECT_EQ(4U, offset); in TEST()
329 lldb::offset_t offset; in TEST() local
336 offset = 1; in TEST()
337 EXPECT_DOUBLE_EQ(expected, LE.GetFloat(&offset)); in TEST()
338 EXPECT_EQ(5U, offset); in TEST()
345 offset = 1; in TEST()
346 EXPECT_DOUBLE_EQ(expected, BE.GetFloat(&offset)); in TEST()
347 EXPECT_EQ(5U, offset); in TEST()
356 lldb::offset_t offset; in TEST() local
363 offset = 0; in TEST()
364 EXPECT_DOUBLE_EQ(expected, LE.GetDouble(&offset)); in TEST()
365 EXPECT_EQ(8U, offset); in TEST()
372 offset = 0; in TEST()
373 EXPECT_DOUBLE_EQ(expected, BE.GetDouble(&offset)); in TEST()
374 EXPECT_EQ(8U, offset); in TEST()
383 lldb::offset_t offset; in TEST() local
390 offset = 1; in TEST()
391 EXPECT_DOUBLE_EQ(expected, LE.GetDouble(&offset)); in TEST()
392 EXPECT_EQ(9U, offset); in TEST()
399 offset = 1; in TEST()
400 EXPECT_DOUBLE_EQ(expected, BE.GetDouble(&offset)); in TEST()
401 EXPECT_EQ(9U, offset); in TEST()