AVPKit
JNIMemoryManager.h
1
/*******************************************************************************
2
* Copyright (c) 2024, 2026, Olivier Ayache. All rights reserved.
3
*
4
* This file is part of AVPKit.
5
*
6
* AVPKit is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* AVPKit is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with AVPKit. If not, see <http://www.gnu.org/licenses/>.
18
*******************************************************************************/
19
20
/*
21
* JNIMemoryManagement.h
22
*
23
* Created on: Aug 28, 2008
24
* Author: aclarke
25
*/
26
27
#ifndef JNIMEMORYMANAGER_H_
28
#define JNIMEMORYMANAGER_H_
29
30
#include <com/avpkit/ferry/Ferry.h>
31
32
namespace
com
{
namespace
avpkit {
namespace
ferry {
33
49
class
VS_API_FERRY
JNIMemoryManager
50
{
51
public
:
64
static
void
* malloc(
size_t
requested_size);
65
70
static
void
free(
void
*mem);
71
103
static
void
* malloc(
void
*allocator,
size_t
requested_size);
104
};
105
}}}
106
#endif
/* JNIMEMORYMANAGER_H_ */
com::avpkit::ferry::JNIMemoryManager
This class's implementation of malloc() and free() will forward to the standard library's malloc() an...
Definition:
JNIMemoryManager.h:50
com
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...
Definition:
AudioResampler.cpp:30
csrc
com
avpkit
ferry
JNIMemoryManager.h
Generated by
1.9.1