virtual void rili::stream::Readable::consume |
( |
std::size_t |
size | ) |
|
|
pure virtual |
operator >> read single character to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read single character to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single short to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single unsigned short to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single long to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single unsigned long to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single long long to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
OperationResult rili::stream::Readable::operator>> |
( |
unsigned long long & |
v | ) |
|
|
inline |
operator >> read(convert) single unsigned long long to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single int to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single unsigned int to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single float to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single double to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single bool to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single pointer value to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
operator >> read(convert) single std::string to given variable from stream
- Parameters
-
v | variable where data should be stored |
- Returns
- result of operation
- Note
- read to first whitespace occurance
operator >> apply given function on stream and return it result
- Parameters
-
- Returns
virtual std::exception_ptr rili::stream::Readable::pull |
( |
std::size_t |
count | ) |
|
|
pure virtual |
pull used to pull from stream underlying sink at least given number of bytes
- Parameters
-
count | number of bytes to retrieve from sink |
- Returns
- error exception if occured
- Note
- implementation of this function do not should provide at least count number of bytes to view.
-
count equal to 0 means implementation should provide zero or more bytes to view and implementation should choose easiest amount to provide.
Implemented in rili::stream::BufferingFifoDuplex, rili::stream::ReadableFileProxy, and rili::stream::BufferingReadable.
void rili::stream::Readable::read |
( |
unsigned char * |
data, |
|
|
std::size_t |
size |
|
) |
| |
|
inline |
read is used to read from stream given amount of data
- Parameters
-
data | address where data should be readed from stream |
size | number of chars to read |
- Note
- user must ensure that given number of chars is avaliable in stream
void rili::stream::Readable::read |
( |
char * |
data, |
|
|
std::size_t |
size |
|
) |
| |
|
inline |
read is used to read from stream given amount of data
- Parameters
-
data | address where data should be readed from stream |
size | number of chars to read |
- Note
- user must ensure that given number of chars is avaliable in stream
void rili::stream::Readable::read |
( |
unsigned char & |
c | ) |
|
|
inline |
read read single byte to given variable
- Parameters
-
- Note
- you need previousely ensure stream view is not empty
void rili::stream::Readable::read |
( |
char & |
c | ) |
|
|
inline |
read read single byte to given variable
- Parameters
-
- Note
- you need previousely ensure stream view is not empty
virtual view::Base const& rili::stream::Readable::readableView |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: