Sese Framework
2.3.0
A cross-platform framework
|
Buffered input stream class. More...
#include <BufferedInputStream.h>
Public Types | |
using | Ptr = std::shared_ptr<BufferedInputStream> |
Public Types inherited from sese::io::InputStream | |
typedef std::shared_ptr< InputStream > | Ptr |
Public Member Functions | |
BufferedInputStream (const InputStream::Ptr &source, size_t buffer_size=STREAM_BYTE_STREAM_SIZE_FACTOR) | |
~BufferedInputStream () noexcept override | |
int64_t | read (void *buffer, size_t length) override |
size_t | getPosition () const |
size_t | getLength () const |
size_t | getCapacity () const |
Public Member Functions inherited from sese::io::InputStream | |
virtual | ~InputStream () noexcept=default |
Private Member Functions | |
int64_t | preRead () noexcept |
Private Attributes | |
InputStream::Ptr | source |
void * | buffer = nullptr |
size_t | pos |
size_t | len |
size_t | cap |
Buffered input stream class.
using sese::io::BufferedInputStream::Ptr = std::shared_ptr<BufferedInputStream> |
|
explicit |
|
inlinenodiscard |
References cap.
|
inlinenodiscard |
References len.
|
inlinenodiscard |
References pos.
|
inlineprivatenoexcept |
|
overridevirtual |
|
private |
Referenced by BufferedInputStream(), preRead(), read(), and ~BufferedInputStream().
|
private |
Referenced by BufferedInputStream(), getCapacity(), preRead(), and read().
|
private |
Referenced by BufferedInputStream(), getLength(), preRead(), and read().
|
private |
Referenced by BufferedInputStream(), getPosition(), preRead(), and read().
|
private |
Referenced by BufferedInputStream(), preRead(), and read().