#include <MemoryInputStream.h>
◆ MemoryInputStream() [1/2]
MemoryInputStream::MemoryInputStream |
( |
| ) |
|
◆ MemoryInputStream() [2/2]
MemoryInputStream::MemoryInputStream |
( |
const void * |
data, |
|
|
size_t |
size, |
|
|
std::string_view |
displayPath = {} |
|
) |
| |
◆ ~MemoryInputStream()
MemoryInputStream::~MemoryInputStream |
( |
| ) |
|
|
virtual |
◆ close()
void MemoryInputStream::close |
( |
| ) |
|
|
overridevirtual |
Closes this input stream. Reading from a closed stream will result in undefined behavior.
Does nothing if the stream is already closed.
- Exceptions
-
Implements InputStream.
◆ displayPath()
std::string MemoryInputStream::displayPath |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Path to the file or resource being read, to be used for debugging and error reporting.
Implements InputStream.
◆ position()
ssize_t MemoryInputStream::position |
( |
| ) |
const |
◆ read()
size_t MemoryInputStream::read |
( |
void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
- Parameters
-
data | Output buffer to write read data into. |
size | Number of bytes to read. |
- Returns
- Number of bytes actually read. A return value that's less than
size
signals end of stream.
- Exceptions
-
Implements InputStream.
◆ reset()
void MemoryInputStream::reset |
( |
const void * |
data, |
|
|
size_t |
size, |
|
|
std::string_view |
displayPath = {} |
|
) |
| |
◆ seek()
void MemoryInputStream::seek |
( |
ssize_t |
pos | ) |
|
◆ size()
ssize_t MemoryInputStream::size |
( |
| ) |
const |
◆ skip()
size_t MemoryInputStream::skip |
( |
size_t |
size | ) |
|
|
overridevirtual |
- Parameters
-
size | Number of bytes to skip. |
- Returns
- Number of bytes actually skipped. A return value that's less than
size
signals end of stream.
- Exceptions
-
Implements InputStream.
◆ _begin
const char* MemoryInputStream::_begin = nullptr |
|
private |
◆ _displayPath
std::string MemoryInputStream::_displayPath |
|
private |
◆ _end
const char* MemoryInputStream::_end = nullptr |
|
private |
◆ _pos
const char* MemoryInputStream::_pos = nullptr |
|
private |
The documentation for this class was generated from the following files: