LibreOffice Module vcl (master) 1
|
Container for the binary data, whose responsibility is to manage the make it as simple as possible to manage the binary data. More...
#include <BinaryDataContainer.hxx>
Public Member Functions | |
BinaryDataContainer () | |
BinaryDataContainer (const sal_uInt8 *pData, size_t nSize) | |
BinaryDataContainer (std::unique_ptr< std::vector< sal_uInt8 > > rData) | |
BinaryDataContainer (const BinaryDataContainer &rBinaryDataContainer) | |
BinaryDataContainer (BinaryDataContainer &&rBinaryDataContainer) noexcept | |
BinaryDataContainer & | operator= (const BinaryDataContainer &rBinaryDataContainer) |
BinaryDataContainer & | operator= (BinaryDataContainer &&rBinaryDataContainer) noexcept |
size_t | getSize () const |
bool | isEmpty () const |
const sal_uInt8 * | getData () const |
size_t | calculateHash () const |
auto | cbegin () const |
auto | cend () const |
Private Attributes | |
std::shared_ptr< std::vector< sal_uInt8 > > | mpData |
Container for the binary data, whose responsibility is to manage the make it as simple as possible to manage the binary data.
The binary data can be anything, but typically it is a in-memory data from files (i.e. files of graphic formats).
Definition at line 22 of file BinaryDataContainer.hxx.
|
default |
BinaryDataContainer::BinaryDataContainer | ( | const sal_uInt8 * | pData, |
size_t | nSize | ||
) |
Definition at line 16 of file BinaryDataContainer.cxx.
References make_shared(), mpData, and pData.
BinaryDataContainer::BinaryDataContainer | ( | std::unique_ptr< std::vector< sal_uInt8 > > | rData | ) |
Definition at line 22 of file BinaryDataContainer.cxx.
References aData.
|
inline |
Definition at line 33 of file BinaryDataContainer.hxx.
|
inlinenoexcept |
Definition at line 38 of file BinaryDataContainer.hxx.
size_t BinaryDataContainer::calculateHash | ( | ) | const |
Definition at line 27 of file BinaryDataContainer.cxx.
References getSize(), o3tl::hash_combine(), and mpData.
Referenced by GfxLink::GetHash().
|
inline |
Definition at line 61 of file BinaryDataContainer.hxx.
Referenced by VectorGraphicData::ensureSequenceAndRange(), and UnoBinaryDataContainer::getCopyAsByteSequence().
|
inline |
Definition at line 63 of file BinaryDataContainer.hxx.
Referenced by VectorGraphicData::ensureSequenceAndRange(), and UnoBinaryDataContainer::getCopyAsByteSequence().
|
inline |
Definition at line 57 of file BinaryDataContainer.hxx.
Referenced by VectorGraphicData::ensurePdfReplacement(), VectorGraphicData::GetChecksum(), GfxLink::GetData(), vcl::ExternalPDFStream::getPDFDocument(), VectorGraphicData::operator==(), and vcl::ExternalPDFStreams::store().
|
inline |
Definition at line 55 of file BinaryDataContainer.hxx.
Referenced by calculateHash(), VectorGraphicData::ensurePdfReplacement(), VectorGraphicData::ensureSequenceAndRange(), VectorGraphicData::GetChecksum(), UnoBinaryDataContainer::getCopyAsByteSequence(), GfxLink::GetDataSize(), vcl::ExternalPDFStream::getPDFDocument(), VectorGraphicData::getSizeBytes(), VectorGraphicData::operator==(), and vcl::ExternalPDFStreams::store().
|
inline |
Definition at line 56 of file BinaryDataContainer.hxx.
Referenced by VectorGraphicData::ensureSequenceAndRange(), UnoBinaryDataContainer::getCopyAsByteSequence(), VectorGraphicData::getSizeBytes(), vcl::ImportPDFUnloaded(), vcl::importPdfVectorGraphicData(), GfxLink::LoadNative(), and vcl::loadVectorGraphic().
|
inlinenoexcept |
Definition at line 49 of file BinaryDataContainer.hxx.
|
inline |
Definition at line 43 of file BinaryDataContainer.hxx.
References mpData.
|
private |
Definition at line 26 of file BinaryDataContainer.hxx.
Referenced by BinaryDataContainer(), calculateHash(), and operator=().