Source implementation that reads data from the specified string.
More...
#include <staticlib/io/string_source.hpp>
Detailed Description
Source implementation that reads data from the specified string.
Constructor & Destructor Documentation
| staticlib::io::string_source::string_source |
( |
std::string && |
str | ) |
|
|
inline |
| staticlib::io::string_source::string_source |
( |
const std::string & |
str | ) |
|
|
inline |
| staticlib::io::string_source::string_source |
( |
std::string && |
str, |
|
|
size_t |
from, |
|
|
size_t |
to |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| str | source string |
| from | start index (inclusive) |
| to | end index (exclusive) |
| staticlib::io::string_source::string_source |
( |
const string_source & |
| ) |
|
Deleted copy constructor.
- Parameters
-
| staticlib::io::string_source::string_source |
( |
string_source && |
other | ) |
|
|
inline |
Move constructor.
- Parameters
-
Member Function Documentation
| std::string& staticlib::io::string_source::get_string |
( |
| ) |
|
|
inline |
Underlying string accessor.
- Returns
- underlying string
Deleted copy assignment operator.
- Parameters
-
- Returns
- this instance
Move assignment operator.
- Parameters
-
- Returns
- this instance
| std::streamsize staticlib::io::string_source::read |
( |
span< char > |
span | ) |
|
|
inline |
Buffered read implementation.
- Parameters
-
- Returns
- number of bytes processed
The documentation for this class was generated from the following file: