MDL SDK API
Up
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
iallocator.h
Go to the documentation of this file.
1
/***************************************************************************************************
2
* Copyright 2022 NVIDIA Corporation. All rights reserved.
3
**************************************************************************************************/
6
7
#ifndef MI_NEURAYLIB_IALLOCATOR_H
8
#define MI_NEURAYLIB_IALLOCATOR_H
9
10
#include <
mi/base/types.h
>
11
#include <
mi/base/interface_declare.h
>
12
#include <
mi/base/iallocator.h
>
13
14
namespace
mi {
15
16
namespace
neuraylib {
17
22
class
IAllocator :
public
30
mi::base::Interface_declare
<0x952af060,0xe2a6,0x4bd7,0xa2,0x52,0x9f,0x6d,0x39,0xfb,0x50,0xa3,
31
base::IAllocator>
32
{
33
public
:
58
virtual
void
*
malloc
(
Size
size) = 0;
59
67
virtual
void
free
(
void
* memory) = 0;
68
76
virtual
Size
get_used_extra_memory
() = 0;
77
};
78
// end group mi_neuray_ineuray
80
81
}
// namespace neuraylib
82
83
}
// namespace mi
84
85
#endif // MI_NEURAYLIB_IALLOCATOR_H
5 April 2022, 20:40, rev.358266
© 2022 NVIDIA Corporation.
All rights reserved.