• Home
  • Raw
  • Download

Lines Matching refs:alignment

36   T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
38 return AtUnchecked(index, element_size, alignment);
41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const {
43 return AtUnchecked(index, element_size, alignment);
46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
47 return StrideIterator<T>(&AtUnchecked(0, element_size, alignment), element_size);
51 size_t alignment = alignof(T)) const {
52 return StrideIterator<const T>(&AtUnchecked(0, element_size, alignment), element_size);
55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size);
60 size_t alignment = alignof(T)) const {
61 return StrideIterator<const T>(&AtUnchecked(size_, element_size, alignment), element_size);
66 size_t alignment = alignof(T)) {
67 DCHECK_ALIGNED_PARAM(element_size, alignment);
68 return RoundUp(offsetof(LengthPrefixedArray<T>, data_), alignment) + index * element_size;
73 size_t alignment = alignof(T)) {
74 size_t result = OffsetOfElement(num_elements, element_size, alignment);
75 DCHECK_ALIGNED_PARAM(result, alignment);
89 void ClearPadding(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
91 size_t gap_size = OffsetOfElement(0, element_size, alignment) - gap_offset;
96 T& AtUnchecked(size_t index, size_t element_size, size_t alignment) { in AtUnchecked() argument
98 reinterpret_cast<uintptr_t>(this) + OffsetOfElement(index, element_size, alignment)); in AtUnchecked()
101 const T& AtUnchecked(size_t index, size_t element_size, size_t alignment) const { in AtUnchecked() argument
103 reinterpret_cast<uintptr_t>(this) + OffsetOfElement(index, element_size, alignment)); in AtUnchecked()
113 LengthPrefixedArray<T>* arr, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
115 MakeIterationRange(arr->begin(element_size, alignment), arr->end(element_size, alignment)) :