Lines Matching refs:ArraySlice
32 class ArraySlice {
47 ArraySlice() : array_(nullptr), size_(0), element_size_(0) {} in ArraySlice() function
51 ArraySlice(T* array,
60 ArraySlice(LengthPrefixedArray<T>* lpa,
63 : ArraySlice(
67 ArraySlice(const ArraySlice<T>&) = default;
68 ArraySlice(ArraySlice<T>&&) noexcept = default;
69 ArraySlice<T>& operator=(const ArraySlice<T>&) = default;
70 ArraySlice<T>& operator=(ArraySlice<T>&&) noexcept = default;
122 ArraySlice<T> SubArray(size_type pos) { in SubArray()
126 ArraySlice<const T> SubArray(size_type pos) const { in SubArray()
130 ArraySlice<T> SubArray(size_type pos, size_type length) { in SubArray()
133 return ArraySlice<T>(&AtUnchecked(pos), length, element_size_); in SubArray()
136 ArraySlice<const T> SubArray(size_type pos, size_type length) const { in SubArray()
139 return ArraySlice<const T>(&AtUnchecked(pos), length, element_size_); in SubArray()
175 std::ostream& operator<<(std::ostream& os, const ArraySlice<T>& ts) {