libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::detail::mapped_istreambuf Class Referencefinal

Streambuf over a read-only memory region. More...

#include <mapped_file.hh>

Inheritance diagram for keepass::detail::mapped_istreambuf:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ mapped_istreambuf()

keepass::detail::mapped_istreambuf::mapped_istreambuf ( const char *  data,
std::size_t  size 
)
inline
Parameters
dataPointer to the first byte.
sizeNumber of bytes in the region.

The documentation for this class was generated from the following file: