Sese Framework
2.3.0
A cross-platform framework
|
Mock stream. More...
#include <FakeStream.h>
Public Member Functions | |
FakeStream (T *t) | |
int64_t | read (void *buffer, size_t length) override |
int64_t | write (const void *buffer, size_t length) override |
Public Member Functions inherited from sese::io::InputStream | |
virtual | ~InputStream () noexcept=default |
Public Member Functions inherited from sese::io::OutputStream | |
virtual | ~OutputStream () noexcept=default |
int64_t | write (const std::string_view &buffer) |
int64_t | write (const text::StringView &buffer) |
template<typename T > | |
int64_t | write (std::vector< T > &buffer) |
template<typename T , size_t N> | |
int64_t | write (std::array< T, N > &buffer) |
Protected Attributes | |
T * | t |
Additional Inherited Members | |
Public Types inherited from sese::io::Stream | |
typedef std::shared_ptr< Stream > | Ptr |
Public Types inherited from sese::io::InputStream | |
typedef std::shared_ptr< InputStream > | Ptr |
Public Types inherited from sese::io::OutputStream | |
typedef std::shared_ptr< OutputStream > | Ptr |
Mock stream.
T | Wrapper type |
|
inlineexplicit |
|
inlineoverridevirtual |
Implements sese::io::InputStream.
References sese::io::FakeStream< T >::t.
|
inlineoverridevirtual |
Implements sese::io::OutputStream.
References sese::io::FakeStream< T >::t.
|
protected |