Home
last modified time | relevance | path

Searched refs:sub_length (Results 1 – 7 of 7) sorted by relevance

/external/google-breakpad/src/tools/linux/md2core/
Dminidump_memory_range_unittest.cc145 size_t sub_length = kSubranges[i].length; in TEST() local
147 << ", length=" << sub_length); in TEST()
149 MinidumpMemoryRange subrange = range.Subrange(sub_offset, sub_length); in TEST()
151 EXPECT_TRUE(range.Covers(sub_offset, sub_length)); in TEST()
153 range.GetData(sub_offset, sub_length)); in TEST()
155 EXPECT_EQ(sub_length, subrange.length()); in TEST()
157 EXPECT_FALSE(range.Covers(sub_offset, sub_length)); in TEST()
158 EXPECT_EQ(NULL, range.GetData(sub_offset, sub_length)); in TEST()
170 size_t sub_length = kSubranges[i].length; in TEST() local
172 << ", length=" << sub_length); in TEST()
[all …]
Dminidump_memory_range.h59 MinidumpMemoryRange Subrange(size_t sub_offset, size_t sub_length) const { in Subrange() argument
60 if (Covers(sub_offset, sub_length)) in Subrange()
61 return MinidumpMemoryRange(data() + sub_offset, sub_length); in Subrange()
/external/google-breakpad/src/common/
Dmemory_range.h77 bool Covers(size_t sub_offset, size_t sub_length) const { in Covers() argument
83 sub_offset + sub_length >= sub_offset && in Covers()
84 sub_offset + sub_length <= length_; in Covers()
90 const void* GetData(size_t sub_offset, size_t sub_length) const { in GetData() argument
91 return Covers(sub_offset, sub_length) ? (data_ + sub_offset) : NULL; in GetData()
124 MemoryRange Subrange(size_t sub_offset, size_t sub_length) const { in Subrange() argument
125 return Covers(sub_offset, sub_length) ? in Subrange()
126 MemoryRange(data_ + sub_offset, sub_length) : MemoryRange(); in Subrange()
Dmemory_range_unittest.cc144 size_t sub_length = kSubranges[i].length; in TEST() local
146 << ", length=" << sub_length); in TEST()
148 MemoryRange subrange = range.Subrange(sub_offset, sub_length); in TEST()
150 EXPECT_TRUE(range.Covers(sub_offset, sub_length)); in TEST()
152 range.GetData(sub_offset, sub_length)); in TEST()
154 EXPECT_EQ(sub_length, subrange.length()); in TEST()
156 EXPECT_FALSE(range.Covers(sub_offset, sub_length)); in TEST()
157 EXPECT_EQ(NULL, range.GetData(sub_offset, sub_length)); in TEST()
/external/libchrome/base/strings/
Dstring_util.cc892 size_t sub_length = 0; in DoReplaceStringPlaceholders() local
894 sub_length += cur.length(); in DoReplaceStringPlaceholders()
897 formatted.reserve(format_string.length() + sub_length); in DoReplaceStringPlaceholders()
/external/v8/src/runtime/
Druntime-strings.cc198 uint32_t sub_length = sub->length(); in RUNTIME_FUNCTION() local
200 if (start_index + pat_length > sub_length) { in RUNTIME_FUNCTION()
201 start_index = sub_length - pat_length; in RUNTIME_FUNCTION()
/external/v8/test/cctest/
Dtest-parsing.cc559 unsigned sub_length = end - start; in TestCharacterStream() local
601 while (i > start + sub_length / 4) { in TestCharacterStream()
632 unsigned halfway = start + sub_length / 2; in TestCharacterStream()