OpenTTD Source 20250506-master-g22fedca77e
|
Compose data into a fixed size buffer, which is consumed at the same time. More...
#include <string_inplace.hpp>
Public Member Functions | |
InPlaceReplacement (std::span< char > buffer) | |
Create coupled Consumer+Builder pair. | |
InPlaceReplacement (const InPlaceReplacement &src) | |
InPlaceReplacement & | operator= (const InPlaceReplacement &src) |
Data Fields | |
StringConsumer | consumer |
Consumer from shared buffer. | |
InPlaceBuilder | builder |
Builder into shared buffer. | |
Compose data into a fixed size buffer, which is consumed at the same time.
Definition at line 91 of file string_inplace.hpp.
InPlaceReplacement::InPlaceReplacement | ( | std::span< char > | buffer | ) |
Create coupled Consumer+Builder pair.
buffer | Data to consume and replace. |
Definition at line 48 of file string_inplace.cpp.
InPlaceReplacement::InPlaceReplacement | ( | const InPlaceReplacement & | src | ) |
Definition at line 53 of file string_inplace.cpp.
InPlaceReplacement & InPlaceReplacement::operator= | ( | const InPlaceReplacement & | src | ) |
Definition at line 58 of file string_inplace.cpp.
InPlaceBuilder InPlaceReplacement::builder |
Builder into shared buffer.
Definition at line 94 of file string_inplace.hpp.
Referenced by StrMakeValidInPlace(), and StrMakeValidInPlace().
StringConsumer InPlaceReplacement::consumer |
Consumer from shared buffer.
Definition at line 93 of file string_inplace.hpp.
Referenced by StrMakeValidInPlace(), and StrMakeValidInPlace().