Pepper_31_C++_interfaces
Main Page
Namespaces
Classes
Files
File List
File Members
dev
memory_dev.h
Go to the documentation of this file.
1
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef PPAPI_CPP_DEV_MEMORY_DEV_H_
6
#define PPAPI_CPP_DEV_MEMORY_DEV_H_
7
8
#include "ppapi/c/pp_stdint.h"
9
10
/// @file
11
/// This file defines APIs related to memory management.
12
13
namespace
pp {
14
15
/// APIs related to memory management, time, and threads.
16
class
Memory_Dev
{
17
public
:
18
Memory_Dev
() {}
19
20
/// A function that allocates memory.
21
///
22
/// @param[in] num_bytes A number of bytes to allocate.
23
/// @return A pointer to the memory if successful, NULL If the
24
/// allocation fails.
25
void
*
MemAlloc
(uint32_t num_bytes);
26
27
/// A function that deallocates memory.
28
///
29
/// @param[in] ptr A pointer to the memory to deallocate. It is safe to
30
/// pass NULL to this function.
31
void
MemFree
(
void
* ptr);
32
};
33
34
}
// namespace pp
35
36
#endif // PPAPI_CPP_DEV_MEMORY_DEV_H_
pp::Memory_Dev::MemFree
void MemFree(void *ptr)
pp::Memory_Dev
APIs related to memory management, time, and threads.
Definition:
memory_dev.h:16
pp::Memory_Dev::Memory_Dev
Memory_Dev()
Definition:
memory_dev.h:18
pp::Memory_Dev::MemAlloc
void * MemAlloc(uint32_t num_bytes)
Generated on Wed May 4 2016 11:31:15 for Pepper_31_C++_interfaces by
1.8.6