MPD
0.20.6
|
A filter that allows the caller to peek the first few bytes without consuming them. More...
#include <PeekReader.hxx>
Public Member Functions | |
PeekReader (Reader &_next) | |
const void * | Peek (size_t size) |
virtual size_t | Read (void *data, size_t size) override |
Read data from the stream. More... | |
![]() | |
Reader ()=default | |
Reader (const Reader &)=delete | |
A filter that allows the caller to peek the first few bytes without consuming them.
The first call must be Peek(), and the following Read() will deliver the same bytes again.
Definition at line 34 of file PeekReader.hxx.
|
inlineexplicit |
Definition at line 42 of file PeekReader.hxx.
const void* PeekReader::Peek | ( | size_t | size | ) |
|
overridevirtual |
Read data from the stream.
Implements Reader.