|
virtual std::size_t | read (char *const data, std::size_t size)=0 |
Definition at line 27 of file LogReplayInputStream.h.
◆ ~LogReplayInputStream()
◆ read()
virtual std::size_t read |
( |
char *const | data, |
|
|
std::size_t | size ) |
|
pure virtual |
Called when log player wants to read data from stream.
- Parameters
-
data | buffer to read data into |
size | max size to read |
- Returns
0
in case of EOF, actually read bytes count otherwise
- Note
- Implementation is free to throw any exceptions. Player would react differently depending on exception type.
Particularly:
std::ios_base::failure
– serious problem on getting data means do not try any further reading from stream and terminate playing;
Absolutely all exceptions are reported via error handler. Description string will be available for children of std::exception
.