Lines Matching refs:sub_offset
77 bool Covers(size_t sub_offset, size_t sub_length) const { in Covers() argument
82 return sub_offset < length_ && in Covers()
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()
97 const DataType* GetData(size_t sub_offset) const { in GetData() argument
99 GetData(sub_offset, sizeof(DataType))); in GetData()
108 size_t sub_offset = element_offset + element_index * element_size; in GetArrayElement() local
109 return GetData(sub_offset, element_size); in GetArrayElement()
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()