Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fx_memory_malloc.cpp File Reference

(3dce9b5818576f04ce21cec4b3686eda012e5b65)

#include "core/fxcrt/fx_memory.h"
#include <stdlib.h>
#include <limits>
#include "build/build_config.h"
#include "core/fxcrt/fx_safe_types.h"
+ Include dependency graph for fx_memory_malloc.cpp:

Go to the source code of this file.

Namespaces

namespace  pdfium
 
namespace  pdfium::internal
 

Functions

voidpdfium::internal::Alloc (size_t num_members, size_t member_size)
 
voidpdfium::internal::Calloc (size_t num_members, size_t member_size)
 
voidpdfium::internal::Realloc (void *ptr, size_t num_members, size_t member_size)
 
void pdfium::internal::Dealloc (void *ptr)
 
voidpdfium::internal::StringAlloc (size_t num_members, size_t member_size)
 
void pdfium::internal::StringDealloc (void *ptr)
 
void FX_InitializeMemoryAllocators ()
 
voidFX_ArrayBufferAllocate (size_t length)
 
voidFX_ArrayBufferAllocateUninitialized (size_t length)
 
void FX_ArrayBufferFree (void *data)
 

Variables

constexpr size_t pdfium::internal::kMallocSizeLimit = std::numeric_limits<int>::max() - (1 << 12)
 

Function Documentation

◆ FX_ArrayBufferAllocate()

void * FX_ArrayBufferAllocate ( size_t length)

Definition at line 71 of file fx_memory_malloc.cpp.

◆ FX_ArrayBufferAllocateUninitialized()

void * FX_ArrayBufferAllocateUninitialized ( size_t length)

Definition at line 78 of file fx_memory_malloc.cpp.

◆ FX_ArrayBufferFree()

void FX_ArrayBufferFree ( void * data)

Definition at line 85 of file fx_memory_malloc.cpp.

Referenced by CFX_V8ArrayBufferAllocator::Free().

+ Here is the caller graph for this function:

◆ FX_InitializeMemoryAllocators()

void FX_InitializeMemoryAllocators ( )

Definition at line 69 of file fx_memory_malloc.cpp.

Referenced by FPDF_InitLibraryWithConfig(), main(), and main().

+ Here is the caller graph for this function: