44#include <StormByte/type_traits/safe.hxx>
47#include <StormByte/safe/condition_variable_any.hxx>
48#include <StormByte/safe/mutex.hxx>
49#include <StormByte/safe/unique_lock.hxx>
50#include <StormByte/type_traits.hxx>
129 template<StormByte::Type::ByteInputRange Rr>
216 inline
bool operator!=(const
SharedFIFO& other) const noexcept {
217 return !(*
this == other);
248 virtual
bool Empty() const noexcept override;
254 virtual
bool EoF() const noexcept override;
303 virtual
void Clear() noexcept override;
309 virtual
void Close() noexcept override;
326 virtual
void Seek(const
std::ptrdiff_t& offset, const
Position& mode) const noexcept override;
364 StormByte::
Safe::String HexDumpHeader() const noexcept override;
374 const
Operation& flag) noexcept override;
384 const
Operation& flag) noexcept override;
FIFO() noexcept=default
Default construct an empty FIFO.
Operation
Kind of internal read operation.
Definition fifo.hxx:503
static STORMBYTE_FORCE_INLINE Safe::Binary DataConvert(const Src &src) noexcept
Convert an lvalue input range to StormByte::Safe::Binary.
Definition generic.hxx:156
bool HasError() const noexcept
Whether the buffer is in a permanent error state.
STORMBYTE_FORCE_INLINE SharedFIFO(Rr &&r) noexcept
Construct from an rvalue range.
Definition shared_fifo.hxx:130
virtual bool Empty() const noexcept override
Whether the underlying storage is empty.
SharedFIFO(FIFO &&other) noexcept
Construct by moving a plain FIFO.
virtual const StormByte::Safe::Binary & Data() const noexcept override
Access the internal storage.
virtual void SetError() noexcept override
Enter the permanent error state and notify waiters.
virtual StormByte::ByteSize Available() const noexcept override
Bytes available from the current read position.
SharedFIFO(SharedFIFO &&)=delete
Move constructor.
SharedFIFO() noexcept
Default construct an empty SharedFIFO.
virtual void Close() noexcept override
Close for further writes and notify waiters.
SharedFIFO(const char *s) noexcept
Construct from a C string.
virtual bool IsReadable() const noexcept override
Whether the buffer can still be read.
SharedFIFO(const FIFO &other)
Construct by copying a plain FIFO.
virtual StormByte::ByteSize Size() const noexcept override
Total number of bytes stored.
virtual void Seek(const std::ptrdiff_t &offset, const Position &mode) const noexcept override
Move the logical read position and notify waiters.
virtual bool IsWritable() const noexcept override
Whether the buffer accepts writes.
virtual ~SharedFIFO() noexcept
Destroy the SharedFIFO.
virtual StormByte::Safe::String HexDump(const StormByte::ByteSize &columns=0, const StormByte::ByteSize &byte_limit=0) const noexcept override
Hexdump of unread contents.
SharedFIFO(std::string_view sv) noexcept
Construct from a string view.
void Clean() noexcept override
Discard data from the start up to the read position.
virtual bool Drop(const StormByte::ByteSize &count) noexcept override
Discard unread bytes and notify waiters.
SharedFIFO(const SharedFIFO &)=delete
Copy constructor.
virtual void Clear() noexcept override
Clear stored bytes.
virtual bool EoF() const noexcept override
End-of-stream condition.
Buffer that can be written and not read.
Definition generic.hxx:497
STORMBYTE_DECLARE_MAYBE_SAFE(class StormByte::System::Device::Access)
Buffer module of the StormByte suite.
Position
Forward declaration of the WriteOnly interface.
Definition typedefs.hxx:74
Root namespace of the StormByte C++ suite.
#define STORMBYTE_BUFFER_PUBLIC
Definition visibility.h:54