Implementation of ExternalReader that reads from a ReadOnly buffer.
More...
#include <external.hxx>
Implementation of ExternalReader that reads from a ReadOnly buffer.
◆ ExternalBufferReader() [1/3]
| StormByte::Buffer::ExternalBufferReader::ExternalBufferReader |
( |
ReadOnly & |
buffer | ) |
|
|
inlinenoexcept |
◆ ExternalBufferReader() [2/3]
Copy constructor (deleted).
- Parameters
-
◆ ExternalBufferReader() [3/3]
Move constructor.
- Parameters
-
◆ Clone()
| PointerType StormByte::Buffer::ExternalBufferReader::Clone |
( |
| ) |
const |
|
inlineoverridenoexcept |
◆ Move()
| PointerType StormByte::Buffer::ExternalBufferReader::Move |
( |
| ) |
|
|
inlineoverridenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Read() [1/2]
| bool StormByte::Buffer::ExternalBufferReader::Read |
( |
std::size_t |
bytes, |
|
|
DataType & |
out |
|
) |
| const |
|
overridevirtualnoexcept |
Read data into the provided buffer.
- Parameters
-
| bytes | Number of bytes to read. |
| out | DataType to fill with read data. |
- Returns
- true if data was successfully read, false otherwise.
Implements StormByte::Buffer::ExternalReader.
◆ Read() [2/2]
| bool StormByte::Buffer::ExternalBufferReader::Read |
( |
std::size_t |
bytes, |
|
|
DataType & |
out |
|
) |
| |
|
overridevirtualnoexcept |
Destructively read data into the provided buffer.
- Parameters
-
| bytes | Number of bytes to read. |
| out | DataType to fill with read data. |
- Returns
- true if data was successfully read, false otherwise.
Implements StormByte::Buffer::ExternalReader.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Buffer/StormByte-Buffer/lib/public/StormByte/buffer/external.hxx