![]() |
MySQL 9.3.0
Source Code Documentation
|
Allocates a single block of memory. More...
Classes | |
struct | BlockList |
Public Member Functions | |
FixedBlock ()=delete | |
FixedBlock (const Bucket< FixedBlock > &parent) | |
FixedBlock (const FixedBlock &)=delete | |
FixedBlock (FixedBlock &&) noexcept | |
FixedBlock & | operator= (const FixedBlock &)=delete |
FixedBlock & | operator= (FixedBlock &&)=delete |
~FixedBlock ()=default | |
void * | allocate_blocks (std::size_t count) noexcept |
Allocates the given number of blocks. More... | |
void | deallocate_blocks (void *ptr, std::size_t count) noexcept |
Deallocates the given number of blocks. More... | |
Private Attributes | |
const Bucket< FixedBlock > & | parent_ |
BlockList * | unused_blocks_ |
Allocates a single block of memory.
|
delete |
|
explicit |
|
delete |
|
noexcept |
|
default |
|
noexcept |
Allocates the given number of blocks.
count | Number of blocks to allocate. |
|
noexcept |
Deallocates the given number of blocks.
ptr | Memory previously allocated by this class. |
count | Number of blocks. |
|
delete |
|
delete |
|
private |
|
private |