LibreOffice Module vcl (master) 1
Public Member Functions | Public Attributes | List of all members
BinaryDataContainer::Impl Struct Reference

Public Member Functions

 Impl (SvStream &stream, size_t size)
 
void readData (SvStream &stream, size_t size)
 Populate mpData from the stream. More...
 
void ensureSwappedIn ()
 ensure the data is in-RAM More...
 
void swapOut ()
 

Public Attributes

std::unique_ptr< utl::TempFileNamedmpFile
 
std::shared_ptr< std::vector< sal_uInt8 > > mpData
 

Detailed Description

Definition at line 18 of file BinaryDataContainer.cxx.

Constructor & Destructor Documentation

◆ Impl()

BinaryDataContainer::Impl::Impl ( SvStream stream,
size_t  size 
)
inline

Definition at line 25 of file BinaryDataContainer.cxx.

References readData(), size, and stream.

Member Function Documentation

◆ ensureSwappedIn()

void BinaryDataContainer::Impl::ensureSwappedIn ( )
inline

ensure the data is in-RAM

Definition at line 36 of file BinaryDataContainer.cxx.

References mpData, mpFile, readData(), SAL_DEBUG, and SAL_WARN_IF.

◆ readData()

void BinaryDataContainer::Impl::readData ( SvStream stream,
size_t  size 
)
inline

Populate mpData from the stream.

Definition at line 28 of file BinaryDataContainer.cxx.

References mpData, pData, size, and stream.

Referenced by ensureSwappedIn(), and Impl().

◆ swapOut()

void BinaryDataContainer::Impl::swapOut ( )
inline

Definition at line 51 of file BinaryDataContainer.cxx.

References mpData, and mpFile.

Member Data Documentation

◆ mpData

std::shared_ptr<std::vector<sal_uInt8> > BinaryDataContainer::Impl::mpData

Definition at line 23 of file BinaryDataContainer.cxx.

Referenced by ensureSwappedIn(), readData(), and swapOut().

◆ mpFile

std::unique_ptr<utl::TempFileNamed> BinaryDataContainer::Impl::mpFile

Definition at line 21 of file BinaryDataContainer.cxx.

Referenced by ensureSwappedIn(), and swapOut().


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