Byte-oriented FIFO buffer with grow-on-demand and close/error support. More...
#include <StormByte/buffer/fifo.hxx>


Public Member Functions | |
Constructors / destructor / assignment | |
| FIFO () noexcept=default | |
| Default construct an empty FIFO. | |
| FIFO (const StormByte::Safe::Binary &data) noexcept | |
| Construct a FIFO with initial data (copy). | |
| FIFO (StormByte::Safe::Binary &&data) noexcept | |
| Construct a FIFO with initial data (move). | |
| template<Type::ByteInputRange R> requires (!Type::SameAs<R, StormByte::Safe::Binary>) | |
| FIFO (const R &r) noexcept | |
| Construct a FIFO from an input range. | |
| template<Type::ByteInputRange Rr> | |
| FIFO (Rr &&r) noexcept | |
| Construct a FIFO from an rvalue range. | |
| FIFO (std::string_view sv) noexcept | |
| Construct a FIFO from a string view. | |
| FIFO (const char *s) noexcept | |
| Construct a FIFO from a C string. | |
| FIFO (const FIFO &other) noexcept | |
| Copy a FIFO, including contents and state. | |
| FIFO (FIFO &&other) noexcept | |
| Take a FIFO. | |
| virtual | ~FIFO () noexcept |
| Destroy the FIFO. | |
| FIFO & | operator= (const FIFO &other) |
| Copy-assign a FIFO, including contents and state. | |
| FIFO & | operator= (FIFO &&other) noexcept |
| Move-assign a FIFO. | |
Comparison | |
| bool | operator== (const FIFO &other) const noexcept |
| Compare two FIFOs. | |
| bool | operator!= (const FIFO &other) const noexcept |
| Compare two FIFOs. | |
Queries | |
| virtual StormByte::ByteSize | Available () const noexcept override |
| Bytes available from the current read position. | |
| virtual const StormByte::Safe::Binary & | Data () const noexcept override |
| Access the internal storage. | |
| virtual bool | Empty () const noexcept override |
| Whether the underlying storage is empty. | |
| virtual bool | EoF () const noexcept override |
| End-of-stream condition. | |
| virtual bool | IsReadable () const noexcept override |
| Whether the buffer can be read. | |
| virtual bool | IsWritable () const noexcept override |
| Whether the buffer accepts writes. | |
| virtual StormByte::ByteSize | Size () const noexcept override |
| Total number of bytes stored, including the already-read prefix. | |
Maintenance / lifecycle | |
| virtual void | Clean () noexcept override |
| Discard data from the start up to the current read position. | |
| virtual void | Clear () noexcept override |
| Clear stored bytes and reset the read position. | |
| void | Close () noexcept override |
| Mark the buffer closed for further writes. | |
| virtual bool | Drop (const StormByte::ByteSize &count) noexcept override |
| Discard unread bytes and advance the read position. | |
| virtual void | Seek (const std::ptrdiff_t &offset, const Position &mode) const noexcept override |
| Move the logical read position. | |
| void | SetError () noexcept override |
| Enter the permanent error state. | |
Extract (destructive) | |
| bool | Extract (const StormByte::ByteSize &count, StormByte::Safe::Binary &outBuffer) noexcept override |
| Extract bytes into owned storage. | |
| bool | Extract (const StormByte::ByteSize &count, WriteOnly &outBuffer) noexcept override |
| Extract bytes into a writer. | |
| void | ExtractUntilEoF (StormByte::Safe::Binary &outBuffer) noexcept override |
| Extract until EoF into owned storage. | |
| void | ExtractUntilEoF (WriteOnly &outBuffer) noexcept override |
| Extract until EoF into a writer. | |
| bool | Extract (StormByte::Safe::Binary &outBuffer) noexcept |
| Bring the ReadOnly convenience Extract overloads into scope. | |
| bool | Extract (WriteOnly &outBuffer) noexcept |
| Bring the ReadOnly convenience Extract overloads into scope. | |
Read (non-destructive) | |
| bool | Read (const StormByte::ByteSize &count, StormByte::Safe::Binary &outBuffer) const noexcept override |
| Read into owned storage and advance the position. | |
| bool | Read (const StormByte::ByteSize &count, WriteOnly &outBuffer) const noexcept override |
| Read into a writer and advance the position. | |
| void | ReadUntilEoF (StormByte::Safe::Binary &outBuffer) const noexcept override |
| Read until EoF into owned storage. | |
| void | ReadUntilEoF (WriteOnly &outBuffer) const noexcept override |
| Read until EoF into a writer. | |
| bool | Read (StormByte::Safe::Binary &outBuffer) const noexcept |
| Bring the ReadOnly convenience Read overloads into scope. | |
| bool | Read (WriteOnly &outBuffer) const noexcept |
| Bring the ReadOnly convenience Read overloads into scope. | |
Peek (non-destructive, does not advance) | |
| bool | Peek (const StormByte::ByteSize &count, StormByte::Safe::Binary &outBuffer) const noexcept override |
| Peek into owned storage without advancing the position. | |
| bool | Peek (const StormByte::ByteSize &count, WriteOnly &outBuffer) const noexcept override |
| Peek into a writer without advancing the position. | |
Diagnostics | |
| virtual StormByte::Safe::String | HexDump (const StormByte::ByteSize &columns=16, const StormByte::ByteSize &byte_limit=0) const noexcept |
| Hexdump of unread contents from the current read position. | |
Write | |
| bool | Write (const StormByte::ByteSize &count, const StormByte::Safe::Binary &data) noexcept override |
| Append bytes from owned storage (copy). | |
| bool | Write (const StormByte::ByteSize &count, StormByte::Safe::Binary &&data) noexcept override |
| Append bytes from owned storage (move). | |
| bool | Write (const StormByte::ByteSize &count, const ReadOnly &data) noexcept override |
| Append bytes from a readable buffer (copy). | |
| bool | Write (const StormByte::ByteSize &count, ReadOnly &&data) noexcept override |
| Append bytes from a readable buffer (extract path). | |
| bool | Write (const ReadOnly &data) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| bool | Write (ReadOnly &&data) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| bool | Write (std::string_view sv) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| bool | Write (const char *s) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| bool | Write (const StormByte::ByteSize &count, std::string_view sv) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| bool | Write (const StormByte::ByteSize &count, const char *s) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<std::size_t N> | |
| bool | Write (const char(&s)[N]) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange R> | |
| STORMBYTE_FORCE_INLINE bool | Write (const R &r) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rw> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, const Rw &r) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rrw> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, Rrw &&r) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rr> | |
| STORMBYTE_FORCE_INLINE bool | Write (Rr &&r) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputIterator I, typename S> requires Type::SentinelFor<S, I> | |
| STORMBYTE_FORCE_INLINE bool | Write (I first, S last) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputIterator I2, typename S2> requires Type::SentinelFor<S2, I2> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, I2 first, S2 last) noexcept |
| Bring the WriteOnly convenience Write overloads into scope. | |
| Public Member Functions inherited from StormByte::Buffer::ReadWrite | |
| ReadWrite () noexcept | |
| Default constructor. | |
| ReadWrite (const ReadWrite &other) noexcept | |
| Copy constructor. | |
| ReadWrite (ReadWrite &&other) noexcept | |
| Move constructor. | |
| virtual | ~ReadWrite () noexcept |
| Destructor. | |
| ReadWrite & | operator= (const ReadWrite &other) noexcept |
| Copy assignment. | |
| ReadWrite & | operator= (ReadWrite &&other) noexcept |
| Move assignment. | |
| Public Member Functions inherited from StormByte::Buffer::ReadOnly | |
| ReadOnly () noexcept | |
| Default constructor. | |
| ReadOnly (const ReadOnly &other) noexcept | |
| Copy constructor. | |
| ReadOnly (ReadOnly &&other) noexcept | |
| Move constructor. | |
| virtual | ~ReadOnly () noexcept |
| Destructor. | |
| ReadOnly & | operator= (const ReadOnly &other) noexcept |
| Copy assignment. | |
| ReadOnly & | operator= (ReadOnly &&other) noexcept |
| Move assignment. | |
| bool | Extract (StormByte::Safe::Binary &outBuffer) noexcept |
| Extract all available bytes into a StormByte::Safe::Binary. | |
| bool | Extract (WriteOnly &outBuffer) noexcept |
| Extract all available bytes into a WriteOnly. | |
| bool | Read (StormByte::Safe::Binary &outBuffer) const noexcept |
| Read all available bytes into a StormByte::Safe::Binary. | |
| bool | Read (WriteOnly &outBuffer) const noexcept |
| Read all available bytes into a WriteOnly. | |
| Public Member Functions inherited from StormByte::Buffer::Generic | |
| Generic () noexcept | |
| Default constructor. | |
| Generic (const Generic &other) noexcept | |
| Copy constructor. | |
| Generic (Generic &&other) noexcept | |
| Move constructor. | |
| virtual | ~Generic () noexcept=0 |
| Pure virtual destructor. | |
| Generic & | operator= (const Generic &other) noexcept |
| Copy assignment. | |
| Generic & | operator= (Generic &&other) noexcept |
| Move assignment. | |
| Public Member Functions inherited from StormByte::Buffer::WriteOnly | |
| WriteOnly () noexcept | |
| Default constructor. | |
| WriteOnly (const WriteOnly &other) noexcept | |
| Copy constructor. | |
| WriteOnly (WriteOnly &&other) noexcept | |
| Move constructor. | |
| virtual | ~WriteOnly () noexcept |
| Destructor. | |
| WriteOnly & | operator= (const WriteOnly &other) noexcept |
| Copy assignment. | |
| WriteOnly & | operator= (WriteOnly &&other) noexcept |
| Move assignment. | |
| bool | Write (const ReadOnly &data) noexcept |
| Append all available bytes from a ReadOnly (copy). | |
| bool | Write (ReadOnly &&data) noexcept |
| Append all available bytes from a ReadOnly (extract). | |
| bool | Write (std::string_view sv) noexcept |
| Write a string view. | |
| bool | Write (const char *s) noexcept |
| Write a C string. | |
| bool | Write (const StormByte::ByteSize &count, std::string_view sv) noexcept |
Write up to count characters of a string view. | |
| bool | Write (const StormByte::ByteSize &count, const char *s) noexcept |
Write up to count characters of a C string. | |
| template<std::size_t N> | |
| bool | Write (const char(&s)[N]) noexcept |
| Write a string literal without the trailing NUL. | |
| template<Type::ByteInputRange R> | |
| STORMBYTE_FORCE_INLINE bool | Write (const R &r) noexcept |
| Write all elements from an input range. | |
| template<Type::ByteInputRange Rw> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, const Rw &r) noexcept |
Write up to count elements from an input range. | |
| template<Type::ByteInputRange Rrw> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, Rrw &&r) noexcept |
Write up to count elements from an rvalue range. | |
| template<Type::ByteInputRange Rr> | |
| STORMBYTE_FORCE_INLINE bool | Write (Rr &&r) noexcept |
| Write all elements from an rvalue range. | |
| template<Type::ByteInputIterator I, typename S> requires Type::SentinelFor<S, I> | |
| STORMBYTE_FORCE_INLINE bool | Write (I first, S last) noexcept |
| Write all elements from an iterator pair. | |
| template<Type::ByteInputIterator I2, typename S2> requires Type::SentinelFor<S2, I2> | |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, I2 first, S2 last) noexcept |
Write up to count elements from an iterator pair. | |
Protected Types | |
| enum class | Operation { Extract , Read , Peek } |
| Kind of internal read operation. More... | |
Protected Member Functions | |
| StormByte::ByteSize | AvailableInternal () const noexcept |
| Return unread bytes without virtual dispatch. | |
| virtual StormByte::Safe::String | HexDumpHeader () const noexcept |
| Build the hexdump header. | |
Internal read / write helpers | |
| virtual bool | ReadInternal (const StormByte::ByteSize &count, StormByte::Safe::Binary &outBuffer, const Operation &flag) noexcept |
| Shared implementation for Extract, Read and Peek into owned storage. | |
| virtual bool | ReadInternal (const StormByte::ByteSize &count, WriteOnly &outBuffer, const Operation &flag) noexcept |
| Shared implementation for Extract, Read and Peek into a writer. | |
| virtual void | ReadUntilEoFInternal (StormByte::Safe::Binary &outBuffer, const Operation &flag) noexcept |
| Drain until EoF into owned storage. | |
| virtual void | ReadUntilEoFInternal (WriteOnly &outBuffer, const Operation &flag) noexcept |
| Drain until EoF into a writer. | |
| virtual bool | WriteInternal (const StormByte::ByteSize &count, const StormByte::Safe::Binary &src) noexcept |
| Append from owned storage (copy). | |
| virtual bool | WriteInternal (const StormByte::ByteSize &count, StormByte::Safe::Binary &&src) noexcept |
| Append from owned storage (move). | |
| virtual bool | WriteInternal (const StormByte::ByteSize &count, const ReadOnly &src) noexcept |
| Append from a readable buffer (copy). | |
| virtual bool | WriteInternal (const StormByte::ByteSize &count, ReadOnly &&src) noexcept |
| Append from a readable buffer (extract path). | |
Static Protected Member Functions | |
| static StormByte::Safe::String | FormatHexLines (std::span< const std::byte > &data, StormByte::ByteSize start_offset, StormByte::ByteSize columns) noexcept |
| Format hex/ASCII lines for a data span. | |
| Static Protected Member Functions inherited from StormByte::Buffer::Generic | |
| template<Type::ByteInputRange Src> | |
| static STORMBYTE_FORCE_INLINE Safe::Binary | DataConvert (const Src &src) noexcept |
| Convert an lvalue input range to StormByte::Safe::Binary. | |
| template<Type::ByteInputRange Src> | |
| static STORMBYTE_FORCE_INLINE Safe::Binary | DataConvert (Src &&src) noexcept |
| Convert an rvalue input range to StormByte::Safe::Binary. | |
| static Safe::Binary | DataConvert (std::string_view sv) noexcept |
| Convert a string view to StormByte::Safe::Binary. | |
| static Safe::Binary | DataConvert (const char *s) noexcept |
| Convert a C string to StormByte::Safe::Binary. | |
Protected Attributes | |
| StormByte::Safe::Binary | m_buffer |
| Owned contiguous byte storage. | |
| StormByte::ByteSize | m_position_offset {0} |
| Logical read offset from the start of m_buffer. | |
| bool | m_closed {false} |
| Once true, further writes fail. | |
| bool | m_error {false} |
| Permanent error: unreadable and unwritable. | |
Byte-oriented FIFO buffer with grow-on-demand and close/error support.
A contiguous growable buffer implemented atop StormByte::Safe::Binary that tracks a logical read position. It grows automatically to fit writes and supports non-destructive reads and destructive extracts.
This class is not thread-safe. For concurrent access use SharedFIFO or Ring.
Supports clear / clean, a movable read position for non-destructive reads, and a closed / error state to signal end-of-writes or permanent failure. Once closed, further writes fail; readers can still drain remaining data until EoF().
Construction from StormByte::Safe::Binary, a byte range, a string view or a C string is implicit.
|
strongprotected |
|
defaultnoexcept |
Default construct an empty FIFO.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Construct a FIFO from an input range.
Implicit.
| R | Input range whose elements convert to std::byte. |
| r | Range to copy from. |
R is already StormByte::Safe::Binary.
|
inlinenoexcept |
Construct a FIFO from an rvalue range.
Implicit.
| Rr | Input range type. Moved when it is StormByte::Safe::Binary. |
| r | Range to consume. |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
Copy a FIFO, including contents and state.
| other | Source. |
|
noexcept |
|
virtualnoexcept |
Destroy the FIFO.
|
overridevirtualnoexcept |
Bytes available from the current read position.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
protectednoexcept |
Return unread bytes without virtual dispatch.
|
overridevirtualnoexcept |
Discard data from the start up to the current read position.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Clear stored bytes and reset the read position.
Does not clear the closed or error flags.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Mark the buffer closed for further writes.
Later Write calls fail. Readers may still drain until Available() is zero.
Implements StormByte::Buffer::WriteOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Access the internal storage.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Discard unread bytes and advance the read position.
| count | Bytes to drop. |
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Whether the underlying storage is empty.
m_buffer is empty. Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
End-of-stream condition.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Extract bytes into owned storage.
| count | Bytes to extract. 0 means all available. |
| outBuffer | Destination. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Extract bytes into a writer.
| count | Bytes to extract. 0 means all available. |
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
inlinenoexcept |
Bring the ReadOnly convenience Extract overloads into scope.
|
inlinenoexcept |
Bring the ReadOnly convenience Extract overloads into scope.
|
overridevirtualnoexcept |
Extract until EoF into owned storage.
| outBuffer | Destination. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Extract until EoF into a writer.
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
staticprotectednoexcept |
Format hex/ASCII lines for a data span.
| data | Bytes to dump. |
| start_offset | Display offset of the first byte. |
| columns | Bytes per line. |
|
virtualnoexcept |
Hexdump of unread contents from the current read position.
| columns | Bytes per line. 0 means 16. |
| byte_limit | Maximum bytes to include. 0 means no limit. |
Reimplemented in StormByte::Buffer::SharedFIFO.
|
protectedvirtualnoexcept |
Build the hexdump header.
|
overridevirtualnoexcept |
Whether the buffer can be read.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Whether the buffer accepts writes.
Implements StormByte::Buffer::WriteOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
inlinenoexcept |
|
inlinenoexcept |
Compare two FIFOs.
| other | Other FIFO. |
|
overridevirtualnoexcept |
Peek into owned storage without advancing the position.
| count | Bytes to peek. 0 means all available. |
| outBuffer | Destination. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Peek into a writer without advancing the position.
| count | Bytes to peek. 0 means all available. |
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Read into owned storage and advance the position.
| count | Bytes to read. 0 means all available. |
| outBuffer | Destination. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Read into a writer and advance the position.
| count | Bytes to read. 0 means all available. |
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
inlinenoexcept |
Bring the ReadOnly convenience Read overloads into scope.
|
inlinenoexcept |
Bring the ReadOnly convenience Read overloads into scope.
|
protectedvirtualnoexcept |
Shared implementation for Extract, Read and Peek into owned storage.
| count | Requested byte count. 0 means all available. |
| outBuffer | Destination. |
| flag | Operation kind. |
|
protectedvirtualnoexcept |
Shared implementation for Extract, Read and Peek into a writer.
| count | Requested byte count. 0 means all available. |
| outBuffer | Destination writer. |
| flag | Operation kind. |
|
overridevirtualnoexcept |
Read until EoF into owned storage.
| outBuffer | Destination. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Read until EoF into a writer.
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
protectedvirtualnoexcept |
Drain until EoF into owned storage.
| outBuffer | Destination. |
| flag | Extract or Read. |
|
protectedvirtualnoexcept |
Drain until EoF into a writer.
| outBuffer | Destination. |
| flag | Extract or Read. |
|
overridevirtualnoexcept |
Move the logical read position.
| offset | Offset. |
| mode | Absolute or relative. |
Clamped to [0, Size()]. Does not modify stored data.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Enter the permanent error state.
Implements StormByte::Buffer::WriteOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Total number of bytes stored, including the already-read prefix.
Implements StormByte::Buffer::Generic.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
noexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
noexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from a readable buffer (copy).
| count | Bytes to write. |
| data | Source buffer. |
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from owned storage (copy).
| count | Bytes to write. |
| data | Source. |
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from a readable buffer (extract path).
| count | Bytes to write. |
| data | Source buffer. |
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
noexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from owned storage (move).
| count | Bytes to write. |
| data | Source. |
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
noexcept |
Bring the WriteOnly convenience Write overloads into scope.
|
protectedvirtualnoexcept |
Append from a readable buffer (copy).
| count | Bytes to write. |
| src | Source. |
|
protectedvirtualnoexcept |
Append from owned storage (copy).
| count | Bytes to write. |
| src | Source. |
|
protectedvirtualnoexcept |
Append from a readable buffer (extract path).
| count | Bytes to write. |
| src | Source. |
|
protectedvirtualnoexcept |
Append from owned storage (move).
| count | Bytes to write. |
| src | Source. |
|
protected |
Owned contiguous byte storage.
|
protected |
Once true, further writes fail.
|
protected |
Permanent error: unreadable and unwritable.
|
mutableprotected |
Logical read offset from the start of m_buffer.