Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::io::OutputBufferWrapper类 参考final

输出缓存包装器 更多...

#include <OutputBufferWrapper.h>

类 sese::io::OutputBufferWrapper 继承关系图:
sese::io::OutputStream

Public 成员函数

 OutputBufferWrapper (char *buffer, size_t cap)
 
int64_t write (const void *buffer, size_t length) override
 
void reset () noexcept
 
const char * getBuffer () const
 
size_t getLength () const
 
size_t getCapacity () const
 
- 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 属性

char * buffer = nullptr
 
size_t len = 0
 
size_t cap = 0
 

额外继承的成员函数

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

详细描述

输出缓存包装器

构造及析构函数说明

◆ OutputBufferWrapper()

sese::io::OutputBufferWrapper::OutputBufferWrapper ( char * buffer,
size_t cap )

成员函数说明

◆ getBuffer()

const char * sese::io::OutputBufferWrapper::getBuffer ( ) const
nodiscard

引用了 buffer.

◆ getCapacity()

size_t sese::io::OutputBufferWrapper::getCapacity ( ) const
nodiscard

◆ getLength()

size_t sese::io::OutputBufferWrapper::getLength ( ) const
nodiscard

◆ reset()

void sese::io::OutputBufferWrapper::reset ( )
noexcept

◆ write()

int64_t sese::io::OutputBufferWrapper::write ( const void * buffer,
size_t length )
overridevirtual

类成员变量说明

◆ buffer

char* sese::io::OutputBufferWrapper::buffer = nullptr
protected

被这些函数引用 getBuffer().

◆ cap

size_t sese::io::OutputBufferWrapper::cap = 0
protected

◆ len

size_t sese::io::OutputBufferWrapper::len = 0
protected

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