Lines Matching defs:array
28 // An ArraySlice is an abstraction over an array or a part of an array of a particular type. It does
29 // bounds checking and can be made from several common array-like structures in Art.
33 // Create an empty array slice.
36 // Create an array slice of the first 'length' elements of the array, with each element being
38 ArraySlice(T* array,
41 : array_(array),
47 // Create an array slice of the elements between start_offset and end_offset of the array with
50 ArraySlice(T* array,
61 array_ = *reinterpret_cast<T*>(reinterpret_cast<uintptr_t>(array) + offset);
65 // Create an array slice of the elements between start_offset and end_offset of the array with
68 ArraySlice(LengthPrefixedArray<T>* array,
76 DCHECK(array != nullptr || size_ == 0);
79 DCHECK_LE(start_offset, array->size());
80 DCHECK_LE(end_offset, array->size());
81 array_ = &array->At(start_offset, element_size_, alignment);