IOProxy subclass for reading that wraps an cspan<char>.
More...
#include <filesystem.h>
|
| IOMemReader (const void *buf, size_t size) |
|
| IOMemReader (cspan< unsigned char > buf) |
|
const char * | proxytype () const override |
|
bool | seek (int64_t offset) override |
|
size_t | read (void *buf, size_t size) override |
|
size_t | pread (void *buf, size_t size, int64_t offset) override |
|
size_t | size () const override |
|
cspan< unsigned char > | buffer () const noexcept |
|
| IOProxy () |
|
| IOProxy (string_view filename, Mode mode) |
|
| IOProxy (const std::wstring &filename, Mode mode) |
|
virtual | ~IOProxy () |
|
virtual void | close () |
|
virtual bool | opened () const |
|
virtual int64_t | tell () |
|
virtual size_t | write (const void *buf, size_t size) |
|
virtual size_t | pwrite (const void *buf, size_t size, int64_t offset) |
|
virtual void | flush () const |
|
Mode | mode () const |
|
const std::string & | filename () const |
|
template<class T > |
size_t | read (span< T > buf) |
|
template<class T > |
size_t | write (span< T > buf) |
|
size_t | write (string_view buf) |
|
bool | seek (int64_t offset, int origin) |
|
std::string | error () const |
|
void | error (string_view e) |
|
IOProxy subclass for reading that wraps an cspan<char>.
Definition at line 540 of file filesystem.h.
Filesystem::IOMemReader::IOMemReader |
( |
const void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Filesystem::IOMemReader::IOMemReader |
( |
cspan< unsigned char > |
buf | ) |
|
|
inline |
cspan<unsigned char> Filesystem::IOMemReader::buffer |
( |
| ) |
const |
|
inlinenoexcept |
size_t Filesystem::IOMemReader::pread |
( |
void * |
buf, |
|
|
size_t |
size, |
|
|
int64_t |
offset |
|
) |
| |
|
overridevirtual |
Read size
bytes starting at the offset
position into buf[]
, returning the number of bytes successfully read. This function does not alter the current file position. This function is thread-safe against all other concurrent calls to pread() and pwrite(), but not against any other function of IOProxy.
Reimplemented from Filesystem::IOProxy.
const char* Filesystem::IOMemReader::proxytype |
( |
| ) |
const |
|
inlineoverridevirtual |
size_t Filesystem::IOMemReader::read |
( |
void * |
buf, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
bool Filesystem::IOMemReader::seek |
( |
int64_t |
offset | ) |
|
|
inlineoverridevirtual |
size_t Filesystem::IOMemReader::size |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
cspan<unsigned char> Filesystem::IOMemReader::m_buf |
|
protected |
The documentation for this class was generated from the following file: