ai_allocate.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
12#pragma once
13#include "ai_msg.h"
14#include "ai_api.h"
15#include "ai_string.h"
16#include <cstddef> // size_t
17
25AI_API void* AiMalloc(size_t size);
26AI_API void* AiRealloc(void* addr, size_t size);
27AI_API void AiFree(void* addr);
28
29AI_API void AiAddMemUsage(int64_t size, const AtString category);
30
31/*\}*/
DLL export prefix for API functions (necessary for multi-platform development)
API for logging messages of different severities - info, warnings, errors.
AtString class for fast comparisons.
Arnold String allows for fast string comparisons.
Definition: ai_string.h:46
AI_API void AiAddMemUsage(int64_t size, const AtString category)
Track allocated memory by named category.
Definition: ai_memory.cpp:152
AI_API void * AiMalloc(size_t size)
Arnold malloc() wrapper.
Definition: ai_memory.cpp:36
AI_API void * AiRealloc(void *addr, size_t size)
Arnold realloc() wrapper.
Definition: ai_memory.cpp:73
AI_API void AiFree(void *addr)
Arnold free() wrapper.
Definition: ai_memory.cpp:109

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com