MySQL 8.0.40
Source Code Documentation
Security_buffer Class Reference

Convenience wrapper around SecBufferDesc. More...

#include <handshake.h>

Inheritance diagram for Security_buffer:
[legend]

Public Member Functions

 Security_buffer (const Blob &)
 Security_buffer class implementation. More...
 
 Security_buffer ()
 
 ~Security_buffer ()
 
byteptr () const
 
size_t len () const
 
const Blob as_blob () const
 
void mem_free (void)
 

Private Member Functions

void init (byte *ptr, size_t len)
 
 Security_buffer (const Security_buffer &)
 
const Security_bufferoperator= (const Security_buffer &)
 

Private Attributes

SecBuffer m_buf
 A SecBuffer instance. More...
 
const bool m_allocated
 If false, no deallocation will be done in the destructor. More...
 

Detailed Description

Convenience wrapper around SecBufferDesc.

Constructor & Destructor Documentation

◆ Security_buffer() [1/3]

Security_buffer::Security_buffer ( const Security_buffer )
private

◆ Security_buffer() [2/3]

Security_buffer::Security_buffer ( const Blob blob)
explicit

Security_buffer class implementation.

◆ Security_buffer() [3/3]

Security_buffer::Security_buffer ( )

◆ ~Security_buffer()

Security_buffer::~Security_buffer ( )
inline

Member Function Documentation

◆ as_blob()

const Blob Security_buffer::as_blob ( ) const
inline

◆ init()

void Security_buffer::init ( byte ptr,
size_t  len 
)
inlineprivate

◆ len()

size_t Security_buffer::len ( ) const
inline

◆ mem_free()

void Security_buffer::mem_free ( void  )

◆ operator=()

const Security_buffer & Security_buffer::operator= ( const Security_buffer )
private

◆ ptr()

byte * Security_buffer::ptr ( ) const
inline

Member Data Documentation

◆ m_allocated

const bool Security_buffer::m_allocated
private

If false, no deallocation will be done in the destructor.

◆ m_buf

SecBuffer Security_buffer::m_buf
private

A SecBuffer instance.


The documentation for this class was generated from the following files: