Source implementation that reads data from the specified char buffer. More...
#include <staticlib/io/array_source.hpp>
Public Member Functions | |
| array_source (const char *src_buf, size_t src_buf_len) | |
| Constructor. | |
| array_source (span< const char > src_buf) | |
| Constructor. | |
| array_source (span< char > src_buf) | |
| Constructor. | |
| array_source (const array_source &other) | |
| Copy constructor. | |
| array_source & | operator= (const array_source &other) |
| Copy assignment operator. | |
| array_source (array_source &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| array_source & | operator= (array_source &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | read (span< char > span) |
| Buffered read implementation. | |
| const char * | get_array () |
| Source buffer accessor. | |
Source implementation that reads data from the specified char buffer.
Buffer is not owned by this source.
|
inline |
Constructor.
| src_buf | source buffer |
| src_buf_len | source buffer length |
|
inline |
Constructor.
| src_buf | source span |
|
inline |
Constructor.
| src_buf | source span |
|
inline |
Copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Source buffer accessor.
|
inline |
Copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Buffered read implementation.
| span | buffer span |
1.8.1.2