MySQL 8.4.2
Source Code Documentation
anonymous_namespace{collations_internal.cc}::Charset_loader Class Reference
Inheritance diagram for anonymous_namespace{collations_internal.cc}::Charset_loader:
[legend]

Public Member Functions

 Charset_loader (const Charset_loader &)=delete
 
Charset_loaderoperator= (const Charset_loader &)=delete
 
 Charset_loader ()=default
 
void reporter (loglevel, unsigned,...) override
 Intercepts error messages from collation parser/initializer. More...
 
void * read_file (const char *, size_t *) 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
 
int add_collation (CHARSET_INFO *cs)
 Collation parser helper function (not overloadable). More...
 
virtual void * once_alloc (size_t)
 Allocate-and-forget version of malloc(). More...
 
virtual void * mem_malloc (size_t size)
 
virtual void mem_free (void *ptr)
 

Constructor & Destructor Documentation

◆ Charset_loader() [1/2]

anonymous_namespace{collations_internal.cc}::Charset_loader::Charset_loader ( const Charset_loader )
delete

◆ Charset_loader() [2/2]

anonymous_namespace{collations_internal.cc}::Charset_loader::Charset_loader ( )
default

Member Function Documentation

◆ operator=()

Charset_loader & anonymous_namespace{collations_internal.cc}::Charset_loader::operator= ( const Charset_loader )
delete

◆ read_file()

void * anonymous_namespace{collations_internal.cc}::Charset_loader::read_file ( const char *  path,
size_t *  size 
)
inlineoverridevirtual

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{collations_internal.cc}::Charset_loader::reporter ( loglevel  loglevel,
unsigned  errcode,
  ... 
)
inlineoverridevirtual

Intercepts error messages from collation parser/initializer.

Parameters
loglevelERROR_LEVEL or WARNING_LEVEL
errcodeSee include/mysys_err.h

Implements MY_CHARSET_LOADER.


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