MySQL 9.2.0
Source Code Documentation
temptable::Memory< Source::MMAP_FILE > Struct Reference

Template specialization for MMAP-based allocation/deallocation. More...

#include <memutils.h>

Static Public Member Functions

static void * allocate (size_t bytes)
 Allocates memory from MMAP-ed file. More...
 
static void deallocate (void *ptr, size_t bytes)
 Deallocates memory from MMAP-ed file. More...
 

Static Private Member Functions

static void * fetch (size_t bytes)
 
static void drop (void *ptr, size_t bytes)
 

Detailed Description

Template specialization for MMAP-based allocation/deallocation.

Member Function Documentation

◆ allocate()

static void * temptable::Memory< Source::MMAP_FILE >::allocate ( size_t  bytes)
inlinestatic

Allocates memory from MMAP-ed file.

Throws Result::RECORD_FILE_FULL if temptable_use_map is not enabled or if allocation was unsuccessful.

[in] Size of the memory to be allocated.

Returns
Pointer to allocated memory.

◆ deallocate()

static void temptable::Memory< Source::MMAP_FILE >::deallocate ( void *  ptr,
size_t  bytes 
)
inlinestatic

Deallocates memory from MMAP-ed file.

[in] Pointer to the memory to be deallocated.. [in] Size of the memory to be deallocated.

◆ drop()

void temptable::Memory< Source::MMAP_FILE >::drop ( void *  ptr,
size_t  bytes 
)
inlinestaticprivate

◆ fetch()

void * temptable::Memory< Source::MMAP_FILE >::fetch ( size_t  bytes)
inlinestaticprivate

The documentation for this struct was generated from the following file: