34 BLI_assert(type ==
nullptr || type->pointer_has_valid_alignment(buffer));
103 return this->
slice(range.
start(), range.size());
109 const int64_t new_size = std::max<int64_t>(0,
size_ - n);
116 const int64_t new_size = std::max<int64_t>(0,
size_ - n);
154 BLI_assert(type ==
nullptr || type->pointer_has_valid_alignment(buffer));
231 return this->
slice(range.
start(), range.size());
237 const int64_t new_size = std::max<int64_t>(0,
size_ - n);
244 const int64_t new_size = std::max<int64_t>(0,
size_ - n);
#define POINTER_OFFSET(v, ofs)
void copy_assign_n(const void *src, void *dst, int64_t n) const
GMutableSpan(const CPPType *type)
void * operator[](int64_t index) const
void copy_from(GSpan values)
GMutableSpan(MutableSpan< T > array)
int64_t size_in_bytes() const
GMutableSpan take_front(const int64_t n) const
GMutableSpan take_back(const int64_t n) const
GMutableSpan slice(const int64_t start, int64_t size) const
const CPPType * type_ptr() const
GMutableSpan drop_back(const int64_t n) const
const CPPType & type() const
GMutableSpan(const CPPType &type)
GMutableSpan(const CPPType *type, void *buffer, int64_t size)
MutableSpan< T > typed() const
GMutableSpan(const CPPType &type, void *buffer, int64_t size)
GMutableSpan drop_front(const int64_t n) const
GMutableSpan slice(IndexRange range) const
const CPPType * type_ptr() const
const CPPType & type() const
GSpan(const CPPType *type, const void *buffer, int64_t size)
GSpan drop_back(const int64_t n) const
GSpan drop_front(const int64_t n) const
GSpan slice(const IndexRange range) const
int64_t size_in_bytes() const
GSpan take_back(const int64_t n) const
GSpan(const CPPType &type, const void *buffer, int64_t size)
GSpan(const CPPType &type)
GSpan slice(const int64_t start, int64_t size) const
const void * data() const
GSpan(const CPPType *type)
GSpan take_front(const int64_t n) const
const void * operator[](int64_t index) const
constexpr int64_t start() const