|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Read-only source for an attachment payload. More...
#include <binary_source.hh>
Public Member Functions | |
| virtual std::size_t | size () const noexcept=0 |
| Returns the payload size in bytes. | |
| virtual void | Read (std::size_t offset, void *dst, std::size_t size) const =0 |
Copies size bytes starting at offset into dst. | |
| virtual void | WriteTo (std::ostream &dst) const =0 |
Writes the whole payload to dst without materializing a copy. | |
Read-only source for an attachment payload.
A source owns or shares the (already decrypted) bytes and exposes them without forcing the object model to materialize a per-attachment copy. The KDBX 4 importer stores all inner-header binaries in one shared, zeroized buffer and creates a small source view for each attachment.
|
pure virtual |
Copies size bytes starting at offset into dst.
| IoError | if the requested range is outside the source. |
Implemented in keepass::detail::BufferBinarySource.
|
pure virtualnoexcept |
Returns the payload size in bytes.
Implemented in keepass::detail::BufferBinarySource.
Writes the whole payload to dst without materializing a copy.
| IoError | on write failure. |
Implemented in keepass::detail::BufferBinarySource.