rapidyaml  0.7.1
parse and emit YAML, and do it fast

Classes

struct  c4::fmt::base64_wrapper_< CharOrConstChar >
 

Typedefs

using c4::fmt::const_base64_wrapper = base64_wrapper_< cbyte >
 a tag type to mark a payload as base64-encoded More...
 
using c4::fmt::base64_wrapper = base64_wrapper_< byte >
 a tag type to mark a payload to be encoded as base64 More...
 

Functions

template<class ... Args>
const_base64_wrapper c4::fmt::cbase64 (Args const &...args)
 mark a variable to be written in base64 format More...
 
const_base64_wrapper c4::fmt::cbase64 (csubstr s)
 mark a csubstr to be written in base64 format More...
 
template<class ... Args>
const_base64_wrapper c4::fmt::base64 (Args const &...args)
 mark a variable to be written in base64 format More...
 
const_base64_wrapper c4::fmt::base64 (csubstr s)
 mark a csubstr to be written in base64 format More...
 
template<class ... Args>
base64_wrapper c4::fmt::base64 (Args &... args)
 mark a variable to be read in base64 format More...
 
base64_wrapper c4::fmt::base64 (substr s)
 mark a variable to be read in base64 format More...
 

Detailed Description

Typedef Documentation

◆ const_base64_wrapper

a tag type to mark a payload as base64-encoded

Definition at line 78 of file base64.hpp.

◆ base64_wrapper

a tag type to mark a payload to be encoded as base64

Definition at line 80 of file base64.hpp.

Function Documentation

◆ cbase64() [1/2]

template<class ... Args>
const_base64_wrapper c4::fmt::cbase64 ( Args const &...  args)
inline

mark a variable to be written in base64 format

Definition at line 85 of file base64.hpp.

86 {
87  return const_base64_wrapper(cblob(args...));
88 }
base64_wrapper_< cbyte > const_base64_wrapper
a tag type to mark a payload as base64-encoded
Definition: base64.hpp:78

◆ cbase64() [2/2]

const_base64_wrapper c4::fmt::cbase64 ( csubstr  s)
inline

mark a csubstr to be written in base64 format

Definition at line 90 of file base64.hpp.

91 {
92  return const_base64_wrapper(cblob(s.str, s.len));
93 }

◆ base64() [1/4]

template<class ... Args>
const_base64_wrapper c4::fmt::base64 ( Args const &...  args)
inline

mark a variable to be written in base64 format

Definition at line 96 of file base64.hpp.

97 {
98  return const_base64_wrapper(cblob(args...));
99 }

Referenced by sample::sample_base64().

◆ base64() [2/4]

const_base64_wrapper c4::fmt::base64 ( csubstr  s)
inline

mark a csubstr to be written in base64 format

Definition at line 101 of file base64.hpp.

102 {
103  return const_base64_wrapper(cblob(s.str, s.len));
104 }

◆ base64() [3/4]

template<class ... Args>
base64_wrapper c4::fmt::base64 ( Args &...  args)
inline

mark a variable to be read in base64 format

Definition at line 108 of file base64.hpp.

109 {
110  return base64_wrapper(blob(args...));
111 }
base64_wrapper_< byte > base64_wrapper
a tag type to mark a payload to be encoded as base64
Definition: base64.hpp:80

◆ base64() [4/4]

base64_wrapper c4::fmt::base64 ( substr  s)
inline

mark a variable to be read in base64 format

Definition at line 113 of file base64.hpp.

114 {
115  return base64_wrapper(blob(s.str, s.len));
116 }