NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
INvDsAllocator.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 #ifndef _NVDS_ALLOCATOR_H_
12 #define _NVDS_ALLOCATOR_H_
13 
14 #include <stdint.h>
15 
17 {
18  public:
24  virtual void* Allocate (uint32_t size) = 0;
29  virtual void Deallocate (void* data) = 0;
30  virtual ~INvDsAllocator() {}
31 };
32 
33 #endif
virtual ~INvDsAllocator()
virtual void Deallocate(void *data)=0
Deallocate the memory allocated using Allocate()
virtual void * Allocate(uint32_t size)=0
Allocate memory of Bytes.