Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::io::FakeStream< T > 模板类 参考

伪装流 更多...

#include <FakeStream.h>

类 sese::io::FakeStream< T > 继承关系图:
sese::io::Stream sese::io::InputStream sese::io::OutputStream sese::io::ClosableFakeStream< T >

Public 成员函数

 FakeStream (T *t)
 
int64_t read (void *buffer, size_t length) override
 
int64_t write (const void *buffer, size_t length) override
 
- Public 成员函数 继承自 sese::io::InputStream
virtual ~InputStream () noexcept=default
 
- Public 成员函数 继承自 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 属性

T * t
 

额外继承的成员函数

- Public 类型 继承自 sese::io::Stream
typedef std::shared_ptr< StreamPtr
 
- Public 类型 继承自 sese::io::InputStream
typedef std::shared_ptr< InputStreamPtr
 
- Public 类型 继承自 sese::io::OutputStream
typedef std::shared_ptr< OutputStreamPtr
 

详细描述

template<typename T>
class sese::io::FakeStream< T >

伪装流

模板参数
T包装类型

构造及析构函数说明

◆ FakeStream()

template<typename T >
sese::io::FakeStream< T >::FakeStream ( T * t)
inlineexplicit

成员函数说明

◆ read()

template<typename T >
int64_t sese::io::FakeStream< T >::read ( void * buffer,
size_t length )
inlineoverridevirtual

◆ write()

template<typename T >
int64_t sese::io::FakeStream< T >::write ( const void * buffer,
size_t length )
inlineoverridevirtual

类成员变量说明

◆ t


该类的文档由以下文件生成: