MySQL  8.0.22
Source Code Documentation
stdx::io Namespace Reference

Namespaces

 impl
 

Classes

class  file_handle
 
class  flag
 
class  path_handle
 

Enumerations

enum  creation { creation::open_existing = 0, creation::only_if_not_exist, creation::if_needed, creation::truncate_existing }
 
enum  mode { mode::unchanged = 0, mode::read = 6, mode::write = 7, mode::append = 9 }
 
enum  caching { caching::unchanged = 0, caching::none = 1, caching::all = 6, caching::temporary = 8 }
 

Functions

static std::error_code last_posix_error_code ()
 
static std::error_code last_error_code ()
 
static std::string random_string (size_t sz)
 get random hex string. More...
 

Enumeration Type Documentation

◆ caching

enum stdx::io::caching
strong
Enumerator
unchanged 
none 
all 
temporary 

◆ creation

enum stdx::io::creation
strong
Enumerator
open_existing 
only_if_not_exist 
if_needed 
truncate_existing 

◆ mode

enum stdx::io::mode
strong
Enumerator
unchanged 
read 
write 
append 

Function Documentation

◆ last_error_code()

static std::error_code stdx::io::last_error_code ( )
static

◆ last_posix_error_code()

static std::error_code stdx::io::last_posix_error_code ( )
static

◆ random_string()

static std::string stdx::io::random_string ( size_t  sz)
static

get random hex string.

characters of the random string are from the range 0-9 and a-f.

Parameters
szsize of the hex-string
Returns
hex-string of size sz