|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Streambuf over a read-only memory region. More...
#include <mapped_file.hh>
Public Member Functions | |
| mapped_istreambuf (const char *data, std::size_t size) | |
Protected Member Functions | |
| std::streampos | seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which) override |
| std::streampos | seekpos (std::streampos sp, std::ios_base::openmode which) override |
Streambuf over a read-only memory region.
The entire mapping is exposed as the get area, so normal sequential and seekable stream operations avoid any additional copies.
|
inline |
| data | Pointer to the first byte. |
| size | Number of bytes in the region. |