Sese Framework
2.3.0
A cross-platform framework
|
Fixed-size byte buffer class. More...
#include <AbstractFixedBuffer.h>
Public Member Functions | |
AbstractFixedBuffer (size_t size) noexcept | |
~AbstractFixedBuffer () noexcept override | |
AbstractFixedBuffer (const AbstractFixedBuffer &buffer) noexcept | |
AbstractFixedBuffer (AbstractFixedBuffer &&buffer) noexcept | |
int64_t | read (void *buffer, size_t length) override |
int64_t | write (const void *buffer, size_t length) override |
int64_t | peek (void *buffer, size_t length) override |
int64_t | trunc (size_t length) override |
virtual void | reset () noexcept |
const char * | data () const |
size_t | getSize () const noexcept |
size_t | getReadSize () const noexcept |
size_t | getWriteSize () const noexcept |
size_t | getReadableSize () const noexcept |
size_t | getWriteableSize () const noexcept |
Public Member Functions inherited from sese::io::InputStream | |
virtual | ~InputStream () noexcept=default |
Public Member Functions inherited from 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) |
Public Member Functions inherited from sese::io::PeekableStream | |
virtual | ~PeekableStream ()=default |
Protected Attributes | |
size_t | size {} |
size_t | readSize {} |
size_t | writeSize {} |
char * | buffer {} |
Additional Inherited Members | |
Public Types inherited from sese::io::Stream | |
typedef std::shared_ptr< Stream > | Ptr |
Public Types inherited from sese::io::InputStream | |
typedef std::shared_ptr< InputStream > | Ptr |
Public Types inherited from sese::io::OutputStream | |
typedef std::shared_ptr< OutputStream > | Ptr |
Public Types inherited from sese::io::PeekableStream | |
typedef std::shared_ptr< PeekableStream > | Ptr |
Fixed-size byte buffer class.
|
explicitnoexcept |
|
overridenoexcept |
References buffer.
|
noexcept |
|
noexcept |
|
inlinenodiscard |
References buffer.
|
inlinenodiscardnoexcept |
References readSize, and writeSize.
Referenced by sese::io::FixedBuffer::getReadableSize().
|
inlinenodiscardnoexcept |
References readSize.
|
inlinenodiscardnoexcept |
References size.
|
inlinenodiscardnoexcept |
References size, and writeSize.
Referenced by sese::io::FixedBuffer::getWriteableSize().
|
inlinenodiscardnoexcept |
References writeSize.
|
overridevirtual |
Read content without stepping
buffer | Buffer |
length | Buffer size |
Implements sese::io::PeekableStream.
Reimplemented in sese::io::FixedBuffer.
References read().
Referenced by sese::io::FixedBuffer::peek().
|
overridevirtual |
Implements sese::io::InputStream.
Reimplemented in sese::io::FixedBuffer.
References read().
Referenced by sese::io::FixedBuffer::read().
|
virtualnoexcept |
Reimplemented in sese::io::FixedBuffer.
Referenced by sese::io::FixedBuffer::reset().
|
overridevirtual |
Step only, without reading content
length | Step size |
Implements sese::io::PeekableStream.
Reimplemented in sese::io::FixedBuffer.
References read().
Referenced by sese::io::FixedBuffer::trunc().
|
overridevirtual |
Implements sese::io::OutputStream.
Reimplemented in sese::io::FixedBuffer.
References write().
Referenced by sese::io::FixedBuffer::write().
|
protected |
Referenced by data(), sese::io::FixedBuffer::read(), and ~AbstractFixedBuffer().
|
protected |
Referenced by getReadableSize(), and getReadSize().
|
protected |
Referenced by getSize(), and getWriteableSize().
|
protected |
Referenced by getReadableSize(), getWriteableSize(), and getWriteSize().