StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
generic.hxx File Reference
#include <StormByte/type_traits/safe.hxx>
#include <StormByte/buffer/typedefs.hxx>
#include <StormByte/byte_size.hxx>
#include <StormByte/safe/binary.hxx>
#include <StormByte/type_traits.hxx>
#include <algorithm>
#include <cstdint>
#include <iterator>
#include <ranges>
#include <span>
#include <string_view>
#include <type_traits>
#include <utility>
Include dependency graph for generic.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StormByte::Buffer::Generic
 Abstract root of the byte-buffer interfaces. More...
class  StormByte::Buffer::ReadOnly
 Buffer that can be read and not written. More...
class  StormByte::Buffer::WriteOnly
 Buffer that can be written and not read. More...
class  StormByte::Buffer::ReadWrite
 Read and write interface. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte C++ suite.
namespace  StormByte::Buffer
 Buffer module of the StormByte suite.

Functions

 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::Generic)
 Stateless interface whose virtual destructor is defined in Buffer.
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::ReadOnly)
 Stateless read interface with provider-defined virtual destruction.
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::WriteOnly)
 Stateless write interface whose conversion helpers use Base-owned binary storage.
 STORMBYTE_DECLARE_MAYBE_SAFE (StormByte::Buffer::ReadWrite)
 Stateless combined interface preserving the shared virtual Generic base.

Function Documentation

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [1/4]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::Generic )

Stateless interface whose virtual destructor is defined in Buffer.

Note
Buffer and each concrete provider must remain loaded with a compatible ABI. This declaration does not classify derived types or their owned state.

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [2/4]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::ReadOnly )

Stateless read interface with provider-defined virtual destruction.

Note
Concrete providers must remain loaded and independently satisfy the lifecycle contract. Borrowed data and output references must remain valid throughout each call.

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [3/4]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::ReadWrite )

Stateless combined interface preserving the shared virtual Generic base.

Note
Buffer and concrete providers must remain loaded with a compatible ABI. This declaration does not certify storage owned by derived types.

◆ STORMBYTE_DECLARE_MAYBE_SAFE() [4/4]

STORMBYTE_DECLARE_MAYBE_SAFE ( StormByte::Buffer::WriteOnly )

Stateless write interface whose conversion helpers use Base-owned binary storage.

Note
Buffer, Base and concrete providers must remain loaded with a compatible ABI. Derived types require their own lifecycle audit and classification.