MySQL 8.0.32
Source Code Documentation
ddl::PFS_buffer Struct Reference

For DDL memory allocations that use the mem_key_ddl handle. More...

#include <ddl0impl-buffer.h>

Inheritance diagram for ddl::PFS_buffer:
[legend]

Public Types

using Type = byte
 
using Allocator = ut::allocator< Type >
 

Public Member Functions

 PFS_buffer ()=default
 Constructor. More...
 
 ~PFS_buffer () noexcept
 Destructor. More...
 
byteallocate (size_t size) noexcept
 
void deallocate () noexcept
 Deallocate the memory. More...
 

Public Attributes

bytem_ptr {}
 Pointer to allocated buffer. More...
 
size_t m_size {}
 Number of bytes allocated. More...
 

Additional Inherited Members

- Private Member Functions inherited from ut::Non_copyable
 Non_copyable (const Non_copyable &)=delete
 
Non_copyableoperator= (const Non_copyable &)=delete
 
 Non_copyable ()=default
 
 ~Non_copyable ()=default
 

Detailed Description

For DDL memory allocations that use the mem_key_ddl handle.

Member Typedef Documentation

◆ Allocator

◆ Type

Constructor & Destructor Documentation

◆ PFS_buffer()

ddl::PFS_buffer::PFS_buffer ( )
default

Constructor.

◆ ~PFS_buffer()

ddl::PFS_buffer::~PFS_buffer ( )
inlinenoexcept

Destructor.

Member Function Documentation

◆ allocate()

byte * ddl::PFS_buffer::allocate ( size_t  size)
inlinenoexcept
Returns
allocated and initialized memory or nullptr on failure.
Parameters
[in]sizeNumber of bytes to allocate.

◆ deallocate()

void ddl::PFS_buffer::deallocate ( )
inlinenoexcept

Deallocate the memory.

Member Data Documentation

◆ m_ptr

byte* ddl::PFS_buffer::m_ptr {}

Pointer to allocated buffer.

◆ m_size

size_t ddl::PFS_buffer::m_size {}

Number of bytes allocated.


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