diff options
Diffstat (limited to 'source/blender/blenlib/BLI_cpp_type.hh')
-rw-r--r-- | source/blender/blenlib/BLI_cpp_type.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_cpp_type.hh b/source/blender/blenlib/BLI_cpp_type.hh index ed680214602..cc48b456da7 100644 --- a/source/blender/blenlib/BLI_cpp_type.hh +++ b/source/blender/blenlib/BLI_cpp_type.hh @@ -626,6 +626,11 @@ class CPPType : NonCopyable, NonMovable { fill_construct_indices_(value, dst, mask); } + bool can_exist_in_buffer(const int64_t buffer_size, const int64_t buffer_alignment) const + { + return size_ <= buffer_size && alignment_ <= buffer_alignment; + } + void print(const void *value, std::stringstream &ss) const { BLI_assert(this->pointer_can_point_to_instance(value)); |