MySQL 9.1.0
Source Code Documentation
anonymous_namespace{charset.cc}::Mysys_charset_loader Class Reference
Inheritance diagram for anonymous_namespace{charset.cc}::Mysys_charset_loader:
[legend]

Public Member Functions

 Mysys_charset_loader (const Mysys_charset_loader &)=delete
 
 Mysys_charset_loader (const Mysys_charset_loader &&)=delete
 
Mysys_charset_loaderoperator= (const Mysys_charset_loader &)=delete
 
Mysys_charset_loaderoperator= (const Mysys_charset_loader &&)=delete
 
 Mysys_charset_loader ()=default
 
 ~Mysys_charset_loader () override=default
 
void reporter (loglevel level, uint errcode,...) override
 
void * once_alloc (size_t sz) override
 Allocate-and-forget version of malloc(). More...
 
void * mem_malloc (size_t sz) override
 
void mem_free (void *ptr) override
 
void * read_file (const char *path, size_t *size) override
 Loads a file by its OS path into collation parser/initializer. More...
 
- Public Member Functions inherited from MY_CHARSET_LOADER
 MY_CHARSET_LOADER ()=default
 
virtual ~MY_CHARSET_LOADER ()
 
 MY_CHARSET_LOADER (const MY_CHARSET_LOADER &)=delete
 
 MY_CHARSET_LOADER (const MY_CHARSET_LOADER &&)=delete
 
MY_CHARSET_LOADERoperator= (const MY_CHARSET_LOADER &)=delete
 
MY_CHARSET_LOADERoperator= (const MY_CHARSET_LOADER &&)=delete
 
virtual void reporter (enum loglevel loglevel, unsigned errcode,...)=0
 Intercepts error messages from collation parser/initializer. More...
 
int add_collation (CHARSET_INFO *cs)
 Collation parser helper function (not overloadable). More...
 

Constructor & Destructor Documentation

◆ Mysys_charset_loader() [1/3]

anonymous_namespace{charset.cc}::Mysys_charset_loader::Mysys_charset_loader ( const Mysys_charset_loader )
delete

◆ Mysys_charset_loader() [2/3]

anonymous_namespace{charset.cc}::Mysys_charset_loader::Mysys_charset_loader ( const Mysys_charset_loader &&  )
delete

◆ Mysys_charset_loader() [3/3]

anonymous_namespace{charset.cc}::Mysys_charset_loader::Mysys_charset_loader ( )
default

◆ ~Mysys_charset_loader()

anonymous_namespace{charset.cc}::Mysys_charset_loader::~Mysys_charset_loader ( )
overridedefault

Member Function Documentation

◆ mem_free()

void anonymous_namespace{charset.cc}::Mysys_charset_loader::mem_free ( void *  ptr)
inlineoverridevirtual

Reimplemented from MY_CHARSET_LOADER.

◆ mem_malloc()

void * anonymous_namespace{charset.cc}::Mysys_charset_loader::mem_malloc ( size_t  sz)
inlineoverridevirtual

Reimplemented from MY_CHARSET_LOADER.

◆ once_alloc()

void * anonymous_namespace{charset.cc}::Mysys_charset_loader::once_alloc ( size_t  size)
inlineoverridevirtual

Allocate-and-forget version of malloc().

Reimplemented from MY_CHARSET_LOADER.

◆ operator=() [1/2]

Mysys_charset_loader & anonymous_namespace{charset.cc}::Mysys_charset_loader::operator= ( const Mysys_charset_loader &&  )
delete

◆ operator=() [2/2]

Mysys_charset_loader & anonymous_namespace{charset.cc}::Mysys_charset_loader::operator= ( const Mysys_charset_loader )
delete

◆ read_file()

void * Mysys_charset_loader::read_file ( const char *  path,
size_t *  size 
)
overridevirtual

Loads a file by its OS path into collation parser/initializer.

Parameters
path'\0'-terminated file path to load
sizeByte size of path
Returns
Pointer to file data on success, otherwise nullptr. This is a caller's responsibility to free this pointer with free().

Implements MY_CHARSET_LOADER.

◆ reporter()

void anonymous_namespace{charset.cc}::Mysys_charset_loader::reporter ( loglevel  level,
uint  errcode,
  ... 
)
inlineoverride

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