|
HDK
|
#include <filesystem.h>
Inheritance diagram for Filesystem::IOVecOutput:Public Member Functions | |
| IOVecOutput () | |
| IOVecOutput (std::vector< unsigned char > &buf) | |
| const char * | proxytype () const override |
| size_t | write (const void *buf, size_t size) override |
| size_t | pwrite (const void *buf, size_t size, int64_t offset) override |
| size_t | size () const override |
| std::vector< unsigned char > & | buffer () const |
Public Member Functions inherited from Filesystem::IOProxy | |
| 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 bool | seek (int64_t offset) |
| virtual size_t | read (void *buf, size_t size) |
| virtual size_t | pread (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) |
Protected Attributes | |
| std::vector< unsigned char > & | m_buf |
| std::vector< unsigned char > | m_local_buf |
| std::mutex | m_mutex |
Protected Attributes inherited from Filesystem::IOProxy | |
| std::string | m_filename |
| int64_t | m_pos = 0 |
| Mode | m_mode = Closed |
| std::string | m_error |
Additional Inherited Members | |
Public Types inherited from Filesystem::IOProxy | |
| enum | Mode { Closed = 0, Read = 'r', Write = 'w' } |
IOProxy subclass for writing that wraps a std::vector<char> that will grow as we write.
Definition at line 509 of file filesystem.h.
|
inline |
Definition at line 512 of file filesystem.h.
|
inline |
Definition at line 518 of file filesystem.h.
|
inline |
Definition at line 529 of file filesystem.h.
|
inlineoverridevirtual |
Implements Filesystem::IOProxy.
Definition at line 523 of file filesystem.h.
|
overridevirtual |
Write size bytes from buf[] to file starting at the offset position, returning the number of bytes successfully written. 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.
|
inlineoverridevirtual |
Reimplemented from Filesystem::IOProxy.
Definition at line 526 of file filesystem.h.
|
overridevirtual |
Reimplemented from Filesystem::IOProxy.
|
protected |
Definition at line 532 of file filesystem.h.
|
protected |
Definition at line 533 of file filesystem.h.
|
protected |
Definition at line 534 of file filesystem.h.