|
StormByte C++ Library: Buffer module 1.2.0
StormByte-Buffer is the buffer module of the StormByte C++ suite.
|
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 DataType &data) noexcept | |
| Construct FIFO with initial data (copy). | |
| FIFO (DataType &&data) noexcept | |
| Construct FIFO with initial data (move). | |
| template<Type::ByteInputRange R> requires (!Type::SameAs<R, DataType>) | |
| FIFO (const R &r) noexcept | |
| Construct FIFO from an input range (copy / convert). | |
| template<Type::ByteInputRange Rr> | |
| FIFO (Rr &&r) noexcept | |
| Construct FIFO from an rvalue range (moves when DataType). | |
| FIFO (std::string_view sv) noexcept | |
| Construct FIFO from a string view (no trailing NUL). | |
| FIFO (const char *s) noexcept | |
| Construct FIFO from a null-terminated C string. | |
| FIFO (const FIFO &other) noexcept | |
| Copy construct, preserving buffer contents and state. | |
| FIFO (FIFO &&other) noexcept | |
| Move construct. | |
| virtual | ~FIFO () noexcept |
| Virtual destructor. | |
| FIFO & | operator= (const FIFO &other) |
| Copy assign, preserving buffer contents and state. | |
| FIFO & | operator= (FIFO &&other) noexcept |
| Move assign. | |
Comparison | |
| bool | operator== (const FIFO &other) const noexcept |
| Equality comparison. | |
| bool | operator!= (const FIFO &other) const noexcept |
| Inequality comparison. | |
Queries | |
| virtual std::size_t | AvailableBytes () const noexcept |
| Bytes available from the current read position. | |
| virtual const DataType & | 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 std::size_t | Size () const noexcept override |
| Total number of bytes stored (including 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 all buffer contents and reset the read position. | |
| void | Close () noexcept override |
| Mark the buffer closed for further writes. | |
| virtual bool | Drop (const std::size_t &count) noexcept override |
Discard count 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 for non-destructive reads. | |
| void | SetError () noexcept override |
| Enter permanent error state (unreadable and unwritable). | |
Extract (destructive) | |
| bool | Extract (const std::size_t &count, DataType &outBuffer) noexcept override |
| Extract bytes into a DataType. | |
| bool | Extract (const std::size_t &count, WriteOnly &outBuffer) noexcept override |
| Extract bytes into a WriteOnly. | |
| void | ExtractUntilEoF (DataType &outBuffer) noexcept override |
| Extract all remaining bytes until EoF into a DataType. | |
| void | ExtractUntilEoF (WriteOnly &outBuffer) noexcept override |
| Extract all remaining bytes until EoF into a WriteOnly. | |
| virtual bool | Extract (const std::size_t &count, DataType &outBuffer) noexcept=0 |
| Bring ReadOnly convenience Extract overloads into scope. | |
| bool | Extract (DataType &outBuffer) noexcept |
| Bring ReadOnly convenience Extract overloads into scope. | |
| virtual bool | Extract (const std::size_t &count, WriteOnly &outBuffer) noexcept=0 |
| Bring ReadOnly convenience Extract overloads into scope. | |
| bool | Extract (WriteOnly &outBuffer) noexcept |
| Bring ReadOnly convenience Extract overloads into scope. | |
Read (non-destructive) | |
| bool | Read (const std::size_t &count, DataType &outBuffer) const noexcept override |
| Non-destructive read into a DataType (advances position). | |
| bool | Read (const std::size_t &count, WriteOnly &outBuffer) const noexcept override |
| Non-destructive read into a WriteOnly (advances position). | |
| void | ReadUntilEoF (DataType &outBuffer) const noexcept override |
| Read all remaining bytes until EoF into a DataType. | |
| void | ReadUntilEoF (WriteOnly &outBuffer) const noexcept override |
| Read all remaining bytes until EoF into a WriteOnly. | |
| virtual bool | Read (const std::size_t &count, DataType &outBuffer) const noexcept=0 |
| Bring ReadOnly convenience Read overloads into scope. | |
| bool | Read (DataType &outBuffer) const noexcept |
| Bring ReadOnly convenience Read overloads into scope. | |
| virtual bool | Read (const std::size_t &count, WriteOnly &outBuffer) const noexcept=0 |
| Bring ReadOnly convenience Read overloads into scope. | |
| bool | Read (WriteOnly &outBuffer) const noexcept |
| Bring ReadOnly convenience Read overloads into scope. | |
Peek (non-destructive, does not advance) | |
| bool | Peek (const std::size_t &count, DataType &outBuffer) const noexcept override |
| Peek into a DataType without advancing the read position. | |
| bool | Peek (const std::size_t &count, WriteOnly &outBuffer) const noexcept override |
| Peek into a WriteOnly without advancing the read position. | |
Diagnostics | |
| virtual std::string | HexDump (const std::size_t &columns=16, const std::size_t &byte_limit=0) const noexcept |
| Hexdump of unread contents from the current read position. | |
Write | |
| bool | Write (const std::size_t &count, const DataType &data) noexcept override |
| Append bytes from a DataType (copy). | |
| bool | Write (const std::size_t &count, DataType &&data) noexcept override |
| Append bytes from a DataType (move). | |
| bool | Write (const std::size_t &count, const ReadOnly &data) noexcept override |
| Append bytes from a ReadOnly source (copy). | |
| bool | Write (const std::size_t &count, ReadOnly &&data) noexcept override |
| Append bytes from a ReadOnly source (move / extract path). | |
| virtual bool | Write (const std::size_t &count, const DataType &data) noexcept=0 |
| Bring WriteOnly convenience Write overloads into scope. | |
| virtual bool | Write (const std::size_t &count, DataType &&data) noexcept=0 |
| Bring WriteOnly convenience Write overloads into scope. | |
| virtual bool | Write (const std::size_t &count, const ReadOnly &data) noexcept=0 |
| Bring WriteOnly convenience Write overloads into scope. | |
| virtual bool | Write (const std::size_t &count, ReadOnly &&data) noexcept=0 |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (const ReadOnly &data) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (ReadOnly &&data) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (std::string_view sv) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (const char *s) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (const std::size_t &count, std::string_view sv) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| bool | Write (const std::size_t &count, const char *s) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<std::size_t N> | |
| bool | Write (const char(&s)[N]) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange R> | |
| bool | Write (const R &r) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rw> | |
| bool | Write (const std::size_t &count, const Rw &r) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rrw> | |
| bool | Write (const std::size_t &count, Rrw &&r) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputRange Rr> | |
| bool | Write (Rr &&r) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputIterator I, typename S > requires Type::SentinelFor<S, I> | |
| bool | Write (I first, S last) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
| template<Type::ByteInputIterator I2, typename S2 > requires Type::SentinelFor<S2, I2> | |
| bool | Write (const std::size_t &count, I2 first, S2 last) noexcept |
| Bring WriteOnly convenience Write overloads into scope. | |
Public Member Functions inherited from StormByte::Buffer::ReadWrite | |
| ReadWrite () noexcept | |
| Default construct. | |
| ReadWrite (const ReadWrite &other) noexcept=default | |
| Copy construct. | |
| ReadWrite (ReadWrite &&other) noexcept=default | |
| Move construct. | |
| virtual | ~ReadWrite () noexcept |
| Virtual destructor. | |
| ReadWrite & | operator= (const ReadWrite &other)=default |
| Copy assign. | |
| ReadWrite & | operator= (ReadWrite &&other) noexcept=default |
| Move assign. | |
Public Member Functions inherited from StormByte::Buffer::ReadOnly | |
| ReadOnly () noexcept | |
| Default construct. | |
| ReadOnly (const ReadOnly &) noexcept=default | |
| Copy construct. | |
| ReadOnly (ReadOnly &&) noexcept=default | |
| Move construct. | |
| virtual | ~ReadOnly () noexcept |
| Virtual destructor. | |
| ReadOnly & | operator= (const ReadOnly &)=default |
| Copy assign. | |
| ReadOnly & | operator= (ReadOnly &&) noexcept=default |
| Move assign. | |
| bool | Extract (DataType &outBuffer) noexcept |
| Extract all available bytes into a DataType. | |
| bool | Extract (WriteOnly &outBuffer) noexcept |
| Extract all available bytes into a WriteOnly. | |
| bool | Read (DataType &outBuffer) const noexcept |
| Read all available bytes into a DataType. | |
| bool | Read (WriteOnly &outBuffer) const noexcept |
| Read all available bytes into a WriteOnly. | |
Public Member Functions inherited from StormByte::Buffer::Generic | |
| Generic () noexcept=default | |
| Default construct. | |
| Generic (const Generic &) noexcept=default | |
| Copy construct. | |
| Generic (Generic &&) noexcept=default | |
| Move construct. | |
| virtual | ~Generic () noexcept=0 |
| Pure virtual destructor (keeps the class abstract). | |
| Generic & | operator= (const Generic &other)=default |
| Copy assign. | |
| Generic & | operator= (Generic &&) noexcept=default |
| Move assign. | |
Public Member Functions inherited from StormByte::Buffer::WriteOnly | |
| WriteOnly () noexcept | |
| Default construct. | |
| WriteOnly (const WriteOnly &)=default | |
| Copy construct. | |
| WriteOnly (WriteOnly &&) noexcept=default | |
| Move construct. | |
| virtual | ~WriteOnly () noexcept |
| Virtual destructor. | |
| WriteOnly & | operator= (const WriteOnly &)=default |
| Copy assign. | |
| WriteOnly & | operator= (WriteOnly &&) noexcept=default |
| Move assign. | |
| 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 (move path). | |
| bool | Write (std::string_view sv) noexcept |
| Write a string view (no trailing NUL). | |
| bool | Write (const char *s) noexcept |
| Write a null-terminated C string. | |
| bool | Write (const std::size_t &count, std::string_view sv) noexcept |
Write up to count characters from a string view. | |
| bool | Write (const std::size_t &count, const char *s) noexcept |
Write up to count characters from 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> | |
| bool | Write (const R &r) noexcept |
| Write all elements from an input range. | |
| template<Type::ByteInputRange Rw> | |
| bool | Write (const std::size_t &count, const Rw &r) noexcept |
Write up to count elements from an input range. | |
| template<Type::ByteInputRange Rrw> | |
| bool | Write (const std::size_t &count, Rrw &&r) noexcept |
Write up to count elements from an rvalue range. | |
| template<Type::ByteInputRange Rr> | |
| bool | Write (Rr &&r) noexcept |
| Write all elements from an rvalue range. | |
| template<Type::ByteInputIterator I, typename S > requires Type::SentinelFor<S, I> | |
| 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> | |
| bool | Write (const std::size_t &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 | |
| std::size_t | AvailableBytesInternal () const noexcept |
| Return unread bytes without virtual dispatch. | |
| virtual std::ostringstream | HexDumpHeader () const noexcept |
| Build the hexdump header (size / position / status). | |
Internal read / write helpers | |
| virtual bool | ReadInternal (const std::size_t &count, DataType &outBuffer, const Operation &flag) noexcept |
| Shared implementation for Extract / Read / Peek into DataType. | |
| virtual bool | ReadInternal (const std::size_t &count, WriteOnly &outBuffer, const Operation &flag) noexcept |
| Shared implementation for Extract / Read / Peek into WriteOnly. | |
| virtual void | ReadUntilEoFInternal (DataType &outBuffer, const Operation &flag) noexcept |
Drain until EoF into DataType using flag semantics. | |
| virtual void | ReadUntilEoFInternal (WriteOnly &outBuffer, const Operation &flag) noexcept |
Drain until EoF into WriteOnly using flag semantics. | |
| virtual bool | WriteInternal (const std::size_t &count, const DataType &src) noexcept |
| Append from DataType (copy). | |
| virtual bool | WriteInternal (const std::size_t &count, DataType &&src) noexcept |
| Append from DataType (move). | |
| virtual bool | WriteInternal (const std::size_t &count, const ReadOnly &src) noexcept |
| Append from ReadOnly (copy path). | |
| virtual bool | WriteInternal (const std::size_t &count, ReadOnly &&src) noexcept |
| Append from ReadOnly (move / extract path). | |
Static Protected Member Functions | |
| static std::string | FormatHexLines (std::span< const std::byte > &data, std::size_t start_offset, std::size_t columns) noexcept |
| Format hex/ASCII lines for a data span. | |
Static Protected Member Functions inherited from StormByte::Buffer::Generic | |
| template<Type::ByteInputRange Src> | |
| static DataType | DataConvert (const Src &src) noexcept |
| Convert an lvalue input range to DataType. | |
| template<Type::ByteInputRange Src> | |
| static DataType | DataConvert (Src &&src) noexcept |
| Convert an rvalue input range to DataType (moves when already DataType). | |
| static DataType | DataConvert (std::string_view sv) noexcept |
| Convert a string view to DataType (no trailing NUL). | |
| static DataType | DataConvert (const char *s) noexcept |
| Convert a null-terminated C string to DataType. | |
Protected Attributes | |
| DataType | m_buffer |
| Owned contiguous byte storage. | |
| std::size_t | m_position_offset {0} |
| Logical read offset from 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.
|
strongprotected |
|
defaultnoexcept |
Default construct an empty FIFO.
|
inlinenoexcept |
Construct FIFO with initial data (copy).
| data | Initial byte vector. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Construct FIFO from a string view (no trailing NUL).
| sv | Source characters. |
|
inlinenoexcept |
Construct FIFO from a null-terminated C string.
| s | Source string (may be null → empty buffer). |
|
noexcept |
Copy construct, preserving buffer contents and state.
| other | Source FIFO. |
|
noexcept |
Move construct.
| other | Source FIFO (left empty / unspecified but valid). |
|
virtualnoexcept |
Virtual destructor.
|
virtualnoexcept |
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 all buffer contents and reset the read position.
Does not clear the closed / error flags.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Mark the buffer closed for further writes.
Subsequent Write() calls fail. Readers may still drain remaining data until AvailableBytes() 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 count unread bytes and advance the read position.
| count | Number of bytes to drop. |
true on success, false if fewer bytes were available. Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Whether the underlying storage is empty.
true if m_buffer is empty. false while AvailableBytes() is zero. Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
End-of-stream condition.
true if in error, or closed with no remaining unread bytes. Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Extract bytes into a DataType.
| count | Bytes to extract; 0 = all available. |
| outBuffer | Destination (filled / resized as needed). |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
inlinevirtualnoexcept |
Bring ReadOnly convenience Extract overloads into scope.
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Extract bytes into a WriteOnly.
| count | Bytes to extract; 0 = all available. |
| outBuffer | Destination writer. |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
inlinevirtualnoexcept |
Bring ReadOnly convenience Extract overloads into scope.
Implements StormByte::Buffer::ReadOnly.
|
inlinenoexcept |
Bring ReadOnly convenience Extract overloads into scope.
|
inlinenoexcept |
Bring ReadOnly convenience Extract overloads into scope.
|
overridevirtualnoexcept |
Extract all remaining bytes until EoF into a DataType.
| outBuffer | Destination buffer. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Extract all remaining bytes until EoF into a WriteOnly.
| 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 → default 16). |
| byte_limit | Max bytes to include (0 → no limit). |
Reimplemented in StormByte::Buffer::SharedFIFO.
|
protectedvirtualnoexcept |
Build the hexdump header (size / position / status).
|
overridevirtualnoexcept |
Whether the buffer can be read.
false in permanent error state. Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Whether the buffer accepts writes.
false if closed or in error. Implements StormByte::Buffer::WriteOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
inlinenoexcept |
|
inlinenoexcept |
Equality comparison.
| other | Other FIFO. |
true if buffer contents, read position and closed/error flags match.
|
overridevirtualnoexcept |
Peek into a DataType without advancing the read position.
| count | Bytes to peek; 0 = all available. |
| outBuffer | Destination buffer. |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Peek into a WriteOnly without advancing the read position.
| count | Bytes to peek; 0 = all available. |
| outBuffer | Destination writer. |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Non-destructive read into a DataType (advances position).
| count | Bytes to read; 0 = all available. |
| outBuffer | Destination buffer. |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
virtualnoexcept |
Bring ReadOnly convenience Read overloads into scope.
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Non-destructive read into a WriteOnly (advances position).
| count | Bytes to read; 0 = all available. |
| outBuffer | Destination writer. |
true on success, false on failure. Implements StormByte::Buffer::ReadOnly.
|
virtualnoexcept |
Bring ReadOnly convenience Read overloads into scope.
Implements StormByte::Buffer::ReadOnly.
|
inlinenoexcept |
Bring ReadOnly convenience Read overloads into scope.
|
inlinenoexcept |
Bring ReadOnly convenience Read overloads into scope.
|
protectedvirtualnoexcept |
Shared implementation for Extract / Read / Peek into DataType.
| count | Requested byte count (0 = all available). |
| outBuffer | Destination. |
| flag | Operation kind. |
true on success.
|
protectedvirtualnoexcept |
Shared implementation for Extract / Read / Peek into WriteOnly.
| count | Requested byte count (0 = all available). |
| outBuffer | Destination writer. |
| flag | Operation kind. |
true on success.
|
overridevirtualnoexcept |
Read all remaining bytes until EoF into a DataType.
| outBuffer | Destination buffer. |
Implements StormByte::Buffer::ReadOnly.
|
overridevirtualnoexcept |
Read all remaining bytes until EoF into a WriteOnly.
| outBuffer | Destination writer. |
Implements StormByte::Buffer::ReadOnly.
|
protectedvirtualnoexcept |
Drain until EoF into DataType using flag semantics.
| outBuffer | Destination. |
| flag | Extract or Read. |
|
protectedvirtualnoexcept |
Drain until EoF into WriteOnly using flag semantics.
| outBuffer | Destination writer. |
| flag | Extract or Read. |
|
overridevirtualnoexcept |
Move the logical read position for non-destructive reads.
| offset | Offset value. |
| mode | Position::Absolute or Position::Relative. |
Position is clamped to [0, Size()]. Does not modify stored data.
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Enter permanent error state (unreadable and unwritable).
Implements StormByte::Buffer::WriteOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
overridevirtualnoexcept |
Total number of bytes stored (including already-read prefix).
Implements StormByte::Buffer::ReadOnly.
Reimplemented in StormByte::Buffer::SharedFIFO.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from a DataType (copy).
| count | Number of bytes to write. |
| data | Source vector. |
true on success, false if closed / error. Implements StormByte::Buffer::WriteOnly.
|
virtualnoexcept |
Bring WriteOnly convenience Write overloads into scope.
Implements StormByte::Buffer::WriteOnly.
|
overridevirtualnoexcept |
Append bytes from a ReadOnly source (copy).
| count | Number of bytes to write. |
| data | Source buffer. |
true on success, false if closed / error. Implements StormByte::Buffer::WriteOnly.
|
virtualnoexcept |
Bring WriteOnly convenience Write overloads into scope.
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from a DataType (move).
| count | Number of bytes to write. |
| data | Source vector. |
true on success, false if closed / error. Implements StormByte::Buffer::WriteOnly.
|
virtualnoexcept |
Bring WriteOnly convenience Write overloads into scope.
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
overridevirtualnoexcept |
Append bytes from a ReadOnly source (move / extract path).
| count | Number of bytes to write. |
| data | Source buffer. |
true on success, false if closed / error. Implements StormByte::Buffer::WriteOnly.
|
virtualnoexcept |
Bring WriteOnly convenience Write overloads into scope.
Implements StormByte::Buffer::WriteOnly.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
inlinenoexcept |
Bring WriteOnly convenience Write overloads into scope.
|
protectedvirtualnoexcept |
Append from DataType (copy).
| count | Number of bytes. |
| src | Source. |
true on success, false if closed / error.
|
protectedvirtualnoexcept |
Append from ReadOnly (copy path).
| count | Number of bytes. |
| src | Source. |
true on success, false if closed / error.
|
protectedvirtualnoexcept |
Append from DataType (move).
| count | Number of bytes. |
| src | Source. |
true on success, false if closed / error.
|
protectedvirtualnoexcept |
Append from ReadOnly (move / extract path).
| count | Number of bytes. |
| src | Source. |
true on success, false if closed / error.
|
protected |
Owned contiguous byte storage.
|
protected |
Once true, further writes fail.
|
protected |
Permanent error: unreadable and unwritable.
|
mutableprotected |
Logical read offset from start of m_buffer.