|
|
| | ReadWrite () noexcept |
| | Default constructor.
|
| |
| | ReadWrite (const ReadWrite &other) noexcept=default |
| | Copy constructor.
|
| |
| | ReadWrite (ReadWrite &&other) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~ReadWrite () noexcept |
| | Destructor.
|
| |
| ReadWrite & | operator= (const ReadWrite &other)=default |
| | Copy assignment.
|
| |
| ReadWrite & | operator= (ReadWrite &&other) noexcept=default |
| | Move assignment.
|
| |
| | ReadOnly () noexcept |
| | Default constructor.
|
| |
| | ReadOnly (const ReadOnly &other) noexcept=default |
| | Copy constructor.
|
| |
| | ReadOnly (ReadOnly &&other) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~ReadOnly () noexcept |
| | Destructor.
|
| |
| ReadOnly & | operator= (const ReadOnly &other)=default |
| | Copy assignment.
|
| |
| ReadOnly & | operator= (ReadOnly &&other) noexcept=default |
| | Move assignment.
|
| |
| virtual StormByte::ByteSize | Available () const noexcept=0 |
| | Bytes available from the current read position.
|
| |
| virtual const BinaryData & | Data () const noexcept=0 |
| | View of internal storage.
|
| |
| virtual bool | Empty () const noexcept=0 |
| | Whether the store holds no bytes.
|
| |
| virtual bool | EoF () const noexcept=0 |
| | End of stream.
|
| |
| virtual bool | IsReadable () const noexcept=0 |
| | Whether the buffer can still be read.
|
| |
| virtual void | Clean () noexcept=0 |
| | Drop bytes from the start up to the current read position.
|
| |
| virtual void | Clear () noexcept=0 |
| | Clear stored bytes and reset logical positions.
|
| |
| virtual bool | Drop (const StormByte::ByteSize &count) noexcept=0 |
| | Discard count unread bytes.
|
| |
| virtual void | Seek (const std::ptrdiff_t &offset, const Position &mode) const noexcept=0 |
| | Move the logical read position.
|
| |
| virtual bool | Extract (const StormByte::ByteSize &count, StormByte::BinaryData &outBuffer) noexcept=0 |
| | Extract bytes into a StormByte::BinaryData.
|
| |
| bool | Extract (StormByte::BinaryData &outBuffer) noexcept |
| | Extract all available bytes into a StormByte::BinaryData.
|
| |
| virtual bool | Extract (const StormByte::ByteSize &count, WriteOnly &outBuffer) noexcept=0 |
| | Extract bytes into a WriteOnly.
|
| |
| bool | Extract (WriteOnly &outBuffer) noexcept |
| | Extract all available bytes into a WriteOnly.
|
| |
| virtual void | ExtractUntilEoF (StormByte::BinaryData &outBuffer) noexcept=0 |
| | Extract until EoF into a StormByte::BinaryData.
|
| |
| virtual void | ExtractUntilEoF (WriteOnly &outBuffer) noexcept=0 |
| | Extract until EoF into a WriteOnly.
|
| |
| virtual bool | Peek (const StormByte::ByteSize &count, StormByte::BinaryData &outBuffer) const noexcept=0 |
| | Peek into a StormByte::BinaryData.
|
| |
| virtual bool | Peek (const StormByte::ByteSize &count, WriteOnly &outBuffer) const noexcept=0 |
| | Peek into a WriteOnly.
|
| |
| virtual bool | Read (const StormByte::ByteSize &count, StormByte::BinaryData &outBuffer) const noexcept=0 |
| | Read into a StormByte::BinaryData.
|
| |
| bool | Read (StormByte::BinaryData &outBuffer) const noexcept |
| | Read all available bytes into a StormByte::BinaryData.
|
| |
| virtual bool | Read (const StormByte::ByteSize &count, WriteOnly &outBuffer) const noexcept=0 |
| | Read into a WriteOnly.
|
| |
| bool | Read (WriteOnly &outBuffer) const noexcept |
| | Read all available bytes into a WriteOnly.
|
| |
| virtual void | ReadUntilEoF (StormByte::BinaryData &outBuffer) const noexcept=0 |
| | Read until EoF into a StormByte::BinaryData.
|
| |
| virtual void | ReadUntilEoF (WriteOnly &outBuffer) const noexcept=0 |
| | Read until EoF into a WriteOnly.
|
| |
| | Generic () noexcept=default |
| | Default constructor.
|
| |
| | Generic (const Generic &other) noexcept=default |
| | Copy constructor.
|
| |
| | Generic (Generic &&other) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~Generic () noexcept=0 |
| | Pure virtual destructor.
|
| |
| Generic & | operator= (const Generic &other)=default |
| | Copy assignment.
|
| |
| Generic & | operator= (Generic &&other) noexcept=default |
| | Move assignment.
|
| |
| virtual StormByte::ByteSize | Size () const noexcept=0 |
| | Total number of bytes stored.
|
| |
| | WriteOnly () noexcept |
| | Default constructor.
|
| |
| | WriteOnly (const WriteOnly &other)=default |
| | Copy constructor.
|
| |
| | WriteOnly (WriteOnly &&other) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~WriteOnly () noexcept |
| | Destructor.
|
| |
| WriteOnly & | operator= (const WriteOnly &other)=default |
| | Copy assignment.
|
| |
| WriteOnly & | operator= (WriteOnly &&other) noexcept=default |
| | Move assignment.
|
| |
| virtual bool | IsWritable () const noexcept=0 |
| | Whether the buffer accepts writes.
|
| |
| virtual void | Close () noexcept=0 |
| | Stop further writes.
|
| |
| virtual void | SetError () noexcept=0 |
| | Permanent error.
|
| |
| virtual bool | Write (const StormByte::ByteSize &count, const BinaryData &data) noexcept=0 |
| | Append bytes from a StormByte::BinaryData (copy).
|
| |
| virtual bool | Write (const StormByte::ByteSize &count, BinaryData &&data) noexcept=0 |
| | Append bytes from a StormByte::BinaryData (move).
|
| |
| virtual bool | Write (const StormByte::ByteSize &count, const ReadOnly &data) noexcept=0 |
| | Append bytes from a ReadOnly (copy).
|
| |
| virtual bool | Write (const StormByte::ByteSize &count, ReadOnly &&data) noexcept=0 |
| | Append bytes from a ReadOnly (extract).
|
| |
| 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> |
| bool | Write (const R &r) noexcept |
| | Write all elements from an input range.
|
| |
| template<Type::ByteInputRange Rw> |
| bool | Write (const StormByte::ByteSize &count, const Rw &r) noexcept |
| | Write up to count elements from an input range.
|
| |
| template<Type::ByteInputRange Rrw> |
| bool | Write (const StormByte::ByteSize &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 StormByte::ByteSize &count, I2 first, S2 last) noexcept |
| | Write up to count elements from an iterator pair.
|
| |
Read and write interface.
FIFO and Ring implement this.
- See also
- ReadOnly, WriteOnly, Generic