MySQL 8.0.32
Source Code Documentation
ddl::Aligned_buffer Struct Reference

Buffer used for reading and writing to the temporary files. More...

#include <ddl0impl-buffer.h>

Inheritance diagram for ddl::Aligned_buffer:
[legend]

Public Member Functions

 Aligned_buffer ()=default
 Constructor. More...
 
 ~Aligned_buffer ()=default
 Destructor. More...
 
bool allocate (size_t size) noexcept
 Allocate the buffer. More...
 
IO_buffer io_buffer () noexcept
 Get the IO buffer. More...
 

Private Attributes

PFS_buffer m_buffer {}
 Raw buffer (unaligned pointer). More...
 
IO_buffer m_io_buffer {}
 The IO buffer. 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

Buffer used for reading and writing to the temporary files.

Constructor & Destructor Documentation

◆ Aligned_buffer()

ddl::Aligned_buffer::Aligned_buffer ( )
default

Constructor.

◆ ~Aligned_buffer()

ddl::Aligned_buffer::~Aligned_buffer ( )
default

Destructor.

Member Function Documentation

◆ allocate()

bool ddl::Aligned_buffer::allocate ( size_t  size)
inlinenoexcept

Allocate the buffer.

Parameters
[in]sizeSize of the buffer.
Returns
true on success.

◆ io_buffer()

IO_buffer ddl::Aligned_buffer::io_buffer ( )
inlinenoexcept

Get the IO buffer.

Returns
the io buffer suitably aligned.

Member Data Documentation

◆ m_buffer

PFS_buffer ddl::Aligned_buffer::m_buffer {}
private

Raw buffer (unaligned pointer).

◆ m_io_buffer

IO_buffer ddl::Aligned_buffer::m_io_buffer {}
private

The IO buffer.


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