Sese Framework
2.3.0
A cross-platform framework
|
Standard library input wrapper stream. More...
#include <FakeStream.h>
Public Member Functions | |
StdInputStreamWrapper (std::istream &stream) | |
int64_t | read (void *buffer, size_t length) override |
int64_t | peek (void *buffer, size_t length) override |
int64_t | trunc (size_t length) override |
Public Member Functions inherited from sese::io::InputStream | |
virtual | ~InputStream () noexcept=default |
Public Member Functions inherited from sese::io::PeekableStream | |
virtual | ~PeekableStream ()=default |
Private Attributes | |
std::istream & | stream |
Additional Inherited Members | |
Public Types inherited from sese::io::InputStream | |
typedef std::shared_ptr< InputStream > | Ptr |
Public Types inherited from sese::io::PeekableStream | |
typedef std::shared_ptr< PeekableStream > | Ptr |
Standard library input wrapper stream.
|
explicit |
|
overridevirtual |
Peek a certain number of bytes
buffer | Buffer |
length | Buffer size |
Implements sese::io::PeekableStream.
|
overridevirtual |
Implements sese::io::InputStream.
|
overridevirtual |
Step a certain number of bytes
length | Step size |
Implements sese::io::PeekableStream.
|
private |