Sese Framework
2.3.0
A cross-platform framework
|
Peekable stream interface. More...
#include <PeekableStream.h>
Public Types | |
typedef std::shared_ptr< PeekableStream > | Ptr |
Public Member Functions | |
virtual | ~PeekableStream ()=default |
virtual int64_t | peek (void *buffer, size_t length)=0 |
virtual int64_t | trunc (size_t length)=0 |
Peekable stream interface.
typedef std::shared_ptr<PeekableStream> sese::io::PeekableStream::Ptr |
|
virtualdefault |
|
pure virtual |
Read content without stepping
buffer | Buffer |
length | Buffer size |
Implemented in 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, and sese::res::ResourceStream.
Referenced by sese::io::InputStreamReader::readLine(), and sese::internal::net::http::HttpClientImpl::writeBodyByData().
|
pure virtual |
Step only, without reading content
length | Step size |
Implemented in 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, and sese::res::ResourceStream.
Referenced by sese::io::InputStreamReader::readLine(), and sese::internal::net::http::HttpClientImpl::writeBodyByData().