libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::array_iostreambuf< N > Class Template Reference

A std::streambuf backed by a fixed-size std::array. More...

#include <stream.hh>

Inheritance diagram for keepass::array_iostreambuf< N >:

Public Member Functions

 array_iostreambuf (std::array< uint8_t, N > &buffer)
 Constructs a streambuf over the given array.
 

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

template<std::size_t N>
class keepass::array_iostreambuf< N >

A std::streambuf backed by a fixed-size std::array.

Provides random-access read/write capability over an in-memory byte array, suitable for use with std::istream and std::ostream.

Template Parameters
NThe size of the backing array in bytes.

Constructor & Destructor Documentation

◆ array_iostreambuf()

template<std::size_t N>
keepass::array_iostreambuf< N >::array_iostreambuf ( std::array< uint8_t, N > &  buffer)
inlineexplicit

Constructs a streambuf over the given array.

Parameters
bufferThe backing array to read from and write to.

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