Home
last modified time | relevance | path

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

/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/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/libchrome/base/strings/
Dstring_util.cc1020 size_t sub_length = 0; in DoReplaceStringPlaceholders() local
1022 sub_length += cur.length(); in DoReplaceStringPlaceholders()
1025 formatted.reserve(format_string.length() + sub_length); in DoReplaceStringPlaceholders()
/external/harfbuzz_ng/src/
Dhb-ot-layout-gpos-table.hh653 unsigned sub_length = valueFormat.get_len (); in subset() local
654 auto values_array = values.as_array (valueCount * sub_length); in subset()
662 values_array.sub_array (_.second * sub_length, in subset()
663 sub_length)); in subset()