![]() |
MySQL 9.3.0
Source Code Documentation
|
Allows to allocate multiple contiguous blocks of memory. More...
Public Member Functions | |
ContiguousBlocks ()=delete | |
ContiguousBlocks (const Bucket< ContiguousBlocks > &parent) | |
ContiguousBlocks (const ContiguousBlocks &)=delete | |
ContiguousBlocks (ContiguousBlocks &&)=delete | |
ContiguousBlocks & | operator= (const ContiguousBlocks &)=delete |
ContiguousBlocks & | operator= (ContiguousBlocks &&)=delete |
~ContiguousBlocks () | |
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 Member Functions | |
std::size_t | find_contiguous_blocks (std::size_t count) const noexcept |
Finds the given number of contiguous blocks. More... | |
void | set_in_use (std::size_t index, std::size_t count) noexcept |
Marks the given number of blocks starting at the given index as used. More... | |
void | set_free (std::size_t index, std::size_t count) noexcept |
Marks the given number of blocks starting at the given index as unused. More... | |
Private Attributes | |
const Bucket< ContiguousBlocks > & | parent_ |
unsigned char * | index_ |
Allows to allocate multiple contiguous blocks of memory.
|
delete |
|
explicit |
|
delete |
|
delete |
mysql_harness::SecureMemoryPool::ContiguousBlocks::~ContiguousBlocks | ( | ) |
|
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. |
|
privatenoexcept |
Finds the given number of contiguous blocks.
|
delete |
|
delete |
|
privatenoexcept |
Marks the given number of blocks starting at the given index as unused.
|
privatenoexcept |
Marks the given number of blocks starting at the given index as used.
|
private |
|
private |