Blender V5.0
memory_utils.cc File Reference

Generic memory manipulation API. More...

#include <cstring>
#include "BLI_sys_types.h"
#include "BLI_utildefines.h"
#include "BLI_memory_utils.h"
#include "BLI_strict_flags.h"

Go to the source code of this file.

Functions

bool BLI_memory_is_zero (const void *arr, const size_t arr_size)

Detailed Description

Generic memory manipulation API.

This is to extend on existing functions such as memcpy & memcmp.

Definition in file memory_utils.cc.

Function Documentation

◆ BLI_memory_is_zero()

bool BLI_memory_is_zero ( const void * arr,
size_t arr_size )

Check if memory is zeroed, as with memset(arr, 0, arr_size).

Definition at line 21 of file memory_utils.cc.

Referenced by blender::nodes::List::ArrayData::ForValue(), and blender::bke::Attribute::ArrayData::from_value().