Abstract root of the byte-buffer interfaces.
More...
#include <StormByte/buffer/generic.hxx>
Abstract root of the byte-buffer interfaces.
No data members. Concrete types own storage. Size is declared here so every buffer (read, write or both) reports occupancy. Protected DataConvert helpers turn ranges and strings into StormByte::BinaryData.
- See also
- ReadOnly, WriteOnly, ReadWrite
◆ Generic() [1/3]
| StormByte::Buffer::Generic::Generic |
( |
| ) |
|
|
defaultnoexcept |
◆ Generic() [2/3]
| StormByte::Buffer::Generic::Generic |
( |
const Generic & |
other | ) |
|
|
defaultnoexcept |
Copy constructor.
- Parameters
-
◆ Generic() [3/3]
| StormByte::Buffer::Generic::Generic |
( |
Generic && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
- Parameters
-
| other | Instance to take from. |
◆ ~Generic()
| virtual StormByte::Buffer::Generic::~Generic |
( |
| ) |
|
|
pure virtualnoexcept |
Pure virtual destructor.
Keeps the class abstract.
◆ DataConvert() [1/4]
| static BinaryData StormByte::Buffer::Generic::DataConvert |
( |
const char * |
s | ) |
|
|
inlinestaticprotectednoexcept |
◆ DataConvert() [2/4]
template<Type::ByteInputRange Src>
| static BinaryData StormByte::Buffer::Generic::DataConvert |
( |
const Src & |
src | ) |
|
|
inlinestaticprotectednoexcept |
◆ DataConvert() [3/4]
template<Type::ByteInputRange Src>
| static BinaryData StormByte::Buffer::Generic::DataConvert |
( |
Src && |
src | ) |
|
|
inlinestaticprotectednoexcept |
◆ DataConvert() [4/4]
| static BinaryData StormByte::Buffer::Generic::DataConvert |
( |
std::string_view |
sv | ) |
|
|
inlinestaticprotectednoexcept |
◆ operator=() [1/2]
| Generic & StormByte::Buffer::Generic::operator= |
( |
const Generic & |
other | ) |
|
|
default |
Copy assignment.
- Parameters
-
- Returns
- *this.
◆ operator=() [2/2]
Move assignment.
- Parameters
-
| other | Instance to take from. |
- Returns
- *this.
◆ Size()
The documentation for this class was generated from the following file: