可窥视流接口
更多...
#include <PeekableStream.h>
|
virtual | ~PeekableStream ()=default |
|
virtual int64_t | peek (void *buffer, size_t length)=0 |
|
virtual int64_t | trunc (size_t length)=0 |
|
◆ Ptr
◆ ~PeekableStream()
virtual sese::io::PeekableStream::~PeekableStream |
( |
| ) |
|
|
virtualdefault |
◆ peek()
virtual int64_t sese::io::PeekableStream::peek |
( |
void * | buffer, |
|
|
size_t | length ) |
|
pure virtual |
仅读取内容,不步进
- 参数
-
- 返回
- 实际读取大小
在 sese::_windows::iocp::v1::NativeContext, sese::io::AbstractByteBuffer, sese::io::AbstractFixedBuffer, sese::io::ByteBuffer, sese::io::FileStream, sese::io::FixedBuffer, sese::io::InputBufferWrapper, sese::io::StdInputStreamWrapper, sese::iocp::IOBuf, sese::iocp::v1::Context, sese::net::Socket , 以及 sese::res::ResourceStream 内被实现.
被这些函数引用 sese::io::InputStreamReader::readLine() , 以及 sese::internal::net::http::HttpClientImpl::writeBodyByData().
◆ trunc()
virtual int64_t sese::io::PeekableStream::trunc |
( |
size_t | length | ) |
|
|
pure virtual |
仅步进,不读取内容
- 参数
-
- 返回
- 实际步进大小
在 sese::_windows::iocp::v1::NativeContext, sese::io::AbstractByteBuffer, sese::io::AbstractFixedBuffer, sese::io::ByteBuffer, sese::io::FileStream, sese::io::FixedBuffer, sese::io::InputBufferWrapper, sese::io::StdInputStreamWrapper, sese::iocp::IOBuf, sese::iocp::v1::Context, sese::net::Socket , 以及 sese::res::ResourceStream 内被实现.
被这些函数引用 sese::io::InputStreamReader::readLine() , 以及 sese::internal::net::http::HttpClientImpl::writeBodyByData().
该类的文档由以下文件生成: