2022-02-10 23:07:11 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2015-10-20 14:39:08 +02:00
|
|
|
|
2021-01-04 03:10:22 +01:00
|
|
|
/* Use a define instead of `#pragma once` because of `BLI_utildefines.h` */
|
2015-10-20 14:39:08 +02:00
|
|
|
#ifndef __BLI_MEMORY_UTILS_H__
|
|
|
|
#define __BLI_MEMORY_UTILS_H__
|
|
|
|
|
2019-02-17 22:08:12 +01:00
|
|
|
/** \file
|
|
|
|
* \ingroup bli
|
|
|
|
* \brief Generic memory manipulation API.
|
2015-10-20 14:39:08 +02:00
|
|
|
*/
|
|
|
|
|
2020-03-02 15:04:53 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-10-20 14:39:08 +02:00
|
|
|
/* it may be defined already */
|
|
|
|
#ifndef __BLI_UTILDEFINES_H__
|
2022-01-12 12:49:36 +01:00
|
|
|
bool BLI_memory_is_zero(const void *arr, size_t size);
|
2015-10-20 14:39:08 +02:00
|
|
|
#endif
|
|
|
|
|
2020-03-02 15:04:53 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-10-20 14:39:08 +02:00
|
|
|
#endif /* __BLI_MEMORY_UTILS_H__ */
|