Class that serves as the target for encode(..., Is_string_target), which never writes anything and only stores the size.
More...
#include <string_counter.h>
|
| | String_counter ()=default |
| | Construct a new object. More...
|
| |
| void | resolve_format_and_write (const Is_format auto &format, const Object_t &object) |
| | Resolve the format, using the rules to deduce format based on default format and parent format, and write the given object using the resolved format. More...
|
| |
Class that serves as the target for encode(..., Is_string_target), which never writes anything and only stores the size.
◆ String_counter() [1/3]
| mysql::strconv::String_counter::String_counter |
( |
| ) |
|
|
protecteddefault |
Construct a new object.
This is hidden from user code. These object are only meant to be created internally by the framework.
◆ String_counter() [2/3]
| mysql::strconv::String_counter::String_counter |
( |
const String_counter & |
| ) |
|
|
delete |
◆ String_counter() [3/3]
◆ ~String_counter()
| mysql::strconv::String_counter::~String_counter |
( |
| ) |
|
|
default |
◆ advance()
| void mysql::strconv::String_counter::advance |
( |
std::size_t |
size | ) |
|
|
inline |
Increment the size by size.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
| std::size_t mysql::strconv::String_counter::size |
( |
| ) |
const |
|
inline |
◆ write() [1/2]
| void mysql::strconv::String_counter::write |
( |
const Is_format auto & |
format, |
|
|
const auto & |
object |
|
) |
| |
|
inline |
Increment the size by the size of the given object.
◆ write() [2/2]
| void mysql::strconv::String_counter::write |
( |
const Is_format auto & |
format, |
|
|
const std::string_view & |
sv |
|
) |
| |
|
inline |
Increment the size by the size of the given string.
This overload enables writing string literals directly.
◆ write_char()
| void mysql::strconv::String_counter::write_char |
( |
int |
| ) |
|
|
inline |
◆ write_raw()
| void mysql::strconv::String_counter::write_raw |
( |
const std::string_view & |
sv | ) |
|
|
inline |
Increment the size by sv.size().
◆ m_size
| std::size_t mysql::strconv::String_counter::m_size {0} |
|
private |
◆ target_type
The documentation for this class was generated from the following file: