LibreOffice Module sot (master) 1
|
#include <stgstrms.hxx>
Public Member Functions | |
virtual | ~StgStrm () |
StgIo & | GetIo () |
sal_Int32 | GetPos () const |
sal_Int32 | GetStart () const |
sal_Int32 | GetSize () const |
sal_Int32 | GetPage () const |
sal_Int32 | GetPages () const |
short | GetOffset () const |
void | SetEntry (StgDirEntry &) |
virtual bool | SetSize (sal_Int32) |
virtual bool | Pos2Page (sal_Int32 nBytePos) |
virtual sal_Int32 | Read (void *, sal_Int32) |
virtual sal_Int32 | Write (const void *, sal_Int32) |
virtual bool | IsSmallStrm () const |
Protected Member Functions | |
sal_Int32 | scanBuildPageChainCache () |
bool | Copy (sal_Int32 nFrom, sal_Int32 nBytes) |
void | SetPos (sal_Int32 nPos, bool bValid) |
StgStrm (StgIo &) | |
Protected Attributes | |
StgIo & | m_rIo |
std::unique_ptr< StgFAT > | m_pFat |
StgDirEntry * | m_pEntry |
sal_Int32 | m_nStart |
sal_Int32 | m_nSize |
sal_Int32 | m_nPage |
short | m_nOffset |
short | m_nPageSize |
std::vector< sal_Int32 > | m_aPagesCache |
o3tl::sorted_vector< sal_Int32 > | m_aUsedPageNumbers |
Private Attributes | |
sal_Int32 | m_nPos |
bool | m_bBytePosValid |
Definition at line 64 of file stgstrms.hxx.
|
explicitprotected |
Definition at line 322 of file stgstrms.cxx.
References m_nPageSize, m_nPos, and m_nSize.
|
virtual |
Definition at line 335 of file stgstrms.cxx.
|
protected |
Definition at line 496 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), StgCache::Copy(), m_aPagesCache, m_aUsedPageNumbers, m_nPageSize, m_nStart, m_pFat, m_rIo, StgCache::SetError(), and SVSTREAM_FILEFORMAT_ERROR.
Referenced by StgDirStrm::Store().
|
inline |
Definition at line 85 of file stgstrms.hxx.
References m_rIo.
Referenced by StgFAT::AllocPages(), StgFAT::FreePages(), StgFAT::GetPhysPage(), StgFAT::InitNew(), StgFAT::MakeChain(), StgDirEntry::SetSize(), StgFAT::StgFAT(), StgDirEntry::Strm2Tmp(), StgDirEntry::Tmp2Strm(), and StgDirEntry::Write().
|
inline |
Definition at line 91 of file stgstrms.hxx.
References m_nOffset.
Referenced by StgFAT::GetPhysPage().
|
inline |
Definition at line 89 of file stgstrms.hxx.
References m_nPage.
Referenced by StgFAT::GetPhysPage(), and StgFAT::InitNew().
|
inline |
Definition at line 90 of file stgstrms.hxx.
References m_nPageSize, and m_nSize.
Referenced by StgIo::CommitAll(), and SetSize().
|
inline |
Definition at line 86 of file stgstrms.hxx.
References m_nPos.
Referenced by StgDataStrm::Read(), StgSmallStrm::Read(), StgDirEntry::Seek(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
inline |
Definition at line 88 of file stgstrms.hxx.
References m_nSize.
Referenced by StgFAT::AllocPages(), StgFAT::FindBlock(), StgDataStrm::GetPtr(), StgFAT::InitNew(), StgDirEntry::SetSize(), StgDirEntry::Write(), and StgSmallStrm::Write().
|
inline |
|
inlinevirtual |
Reimplemented in StgSmallStrm.
Definition at line 97 of file stgstrms.hxx.
Referenced by StgDirEntry::SetSize().
|
virtual |
Reimplemented in StgFATStrm.
Definition at line 396 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_aPagesCache, m_aUsedPageNumbers, m_bBytePosValid, m_nOffset, m_nPage, m_nPageSize, m_nPos, m_nSize, m_nStart, m_pFat, SAL_WARN, and STG_EOF.
Referenced by StgFAT::GetPhysPage(), StgDataStrm::GetPtr(), StgFAT::InitNew(), StgDataStrm::Read(), StgSmallStrm::Read(), StgDirEntry::Seek(), StgDirEntry::SetSize(), SetSize(), StgDataStrm::SetSize(), StgDirEntry::Strm2Tmp(), StgDirEntry::Tmp2Strm(), StgDirEntry::Write(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
inlinevirtual |
Reimplemented in StgDataStrm, and StgSmallStrm.
Definition at line 95 of file stgstrms.hxx.
Referenced by StgDirEntry::Read(), StgSmallStrm::Read(), StgDirEntry::SetSize(), and StgDirEntry::Strm2Tmp().
|
protected |
Definition at line 355 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), ERRCODE_IO_WRONGFORMAT, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), m_aPagesCache, m_aUsedPageNumbers, m_nPageSize, m_nSize, m_nStart, m_pFat, m_rIo, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::reserve(), SAL_WARN, and StgCache::SetError().
Referenced by StgDataStrm::Init().
void StgStrm::SetEntry | ( | StgDirEntry & | r | ) |
Definition at line 341 of file stgstrms.cxx.
References StgDirEntry::m_aEntry, m_nSize, m_nStart, m_pEntry, StgDirEntry::SetDirty(), StgEntry::SetLeaf(), StgEntry::SetSize(), and STG_DATA.
Referenced by StgDirEntry::SetSize(), StgIo::SetupStreams(), and StgDirEntry::Tmp2Strm().
|
inlineprotected |
Definition at line 81 of file stgstrms.hxx.
References m_bBytePosValid, m_nPos, and nPos.
Referenced by StgFATStrm::Pos2Page(), StgDataStrm::Read(), StgSmallStrm::Read(), StgDirStrm::Store(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
virtual |
Reimplemented in StgDirStrm, StgFATStrm, and StgDataStrm.
Definition at line 528 of file stgstrms.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), GetPages(), StgDirEntry::m_aEntry, m_aPagesCache, m_aUsedPageNumbers, m_nPage, m_nPageSize, m_nSize, m_nStart, m_pEntry, m_pFat, Pos2Page(), StgDirEntry::SetDirty(), StgEntry::SetLeaf(), StgEntry::SetSize(), STG_DATA, and STG_EOF.
Referenced by StgFAT::AllocPages(), StgDirEntry::Commit(), StgDirEntry::SetSize(), StgDirStrm::SetSize(), StgDataStrm::SetSize(), StgDirEntry::StoreStream(), StgDirEntry::Tmp2Strm(), and StgSmallStrm::Write().
|
inlinevirtual |
Reimplemented in StgDataStrm, and StgSmallStrm.
Definition at line 96 of file stgstrms.hxx.
Referenced by StgDirEntry::SetSize(), StgDirEntry::Write(), and StgSmallStrm::Write().
|
protected |
Definition at line 77 of file stgstrms.hxx.
Referenced by Copy(), StgFATStrm::GetPage(), Pos2Page(), scanBuildPageChainCache(), StgFATStrm::SetPage(), SetSize(), and StgFATStrm::SetSize().
|
protected |
Definition at line 78 of file stgstrms.hxx.
Referenced by Copy(), StgFATStrm::GetPage(), Pos2Page(), scanBuildPageChainCache(), StgFATStrm::SetPage(), SetSize(), and StgFATStrm::SetSize().
|
private |
Definition at line 67 of file stgstrms.hxx.
Referenced by Pos2Page(), and SetPos().
|
protected |
Definition at line 75 of file stgstrms.hxx.
Referenced by GetOffset(), StgFATStrm::GetPage(), StgDataStrm::GetPtr(), StgDataStrm::Init(), Pos2Page(), StgFATStrm::Pos2Page(), StgDataStrm::Read(), StgSmallStrm::Read(), StgFATStrm::SetPage(), StgFATStrm::SetSize(), StgDirStrm::Store(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
protected |
Definition at line 74 of file stgstrms.hxx.
Referenced by GetPage(), StgFATStrm::GetPage(), StgDataStrm::GetPtr(), StgDataStrm::Init(), StgSmallStrm::Init(), Pos2Page(), StgFATStrm::Pos2Page(), StgDataStrm::Read(), StgSmallStrm::Read(), StgFATStrm::SetPage(), SetSize(), StgFATStrm::SetSize(), StgDataStrm::SetSize(), StgDirStrm::Store(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
protected |
Definition at line 76 of file stgstrms.hxx.
Referenced by Copy(), StgFATStrm::GetPage(), GetPages(), StgSmallStrm::Init(), Pos2Page(), StgFATStrm::Pos2Page(), StgDataStrm::Read(), StgSmallStrm::Read(), scanBuildPageChainCache(), StgFATStrm::SetPage(), SetSize(), StgDirStrm::SetSize(), StgFATStrm::SetSize(), StgDataStrm::SetSize(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
private |
Definition at line 66 of file stgstrms.hxx.
Referenced by GetPos(), Pos2Page(), and SetPos().
|
protected |
Definition at line 73 of file stgstrms.hxx.
Referenced by StgDirStrm::GetEntry(), StgFATStrm::GetPage(), GetPages(), GetSize(), StgDataStrm::Init(), StgSmallStrm::Init(), Pos2Page(), StgFATStrm::Pos2Page(), StgDataStrm::Read(), StgSmallStrm::Read(), scanBuildPageChainCache(), SetEntry(), SetSize(), StgFATStrm::SetSize(), StgDataStrm::SetSize(), StgFATStrm::StgFATStrm(), StgDirStrm::Store(), StgDataStrm::Write(), and StgSmallStrm::Write().
|
protected |
Definition at line 72 of file stgstrms.hxx.
Referenced by Copy(), GetStart(), StgDataStrm::Init(), StgSmallStrm::Init(), Pos2Page(), scanBuildPageChainCache(), SetEntry(), SetSize(), StgDirStrm::StgDirStrm(), and StgDirStrm::Store().
|
protected |
Definition at line 71 of file stgstrms.hxx.
Referenced by SetEntry(), SetSize(), StgDataStrm::StgDataStrm(), StgDirStrm::StgDirStrm(), and StgSmallStrm::StgSmallStrm().
|
protected |
Definition at line 70 of file stgstrms.hxx.
Referenced by Copy(), StgDataStrm::Init(), StgSmallStrm::Init(), Pos2Page(), scanBuildPageChainCache(), SetSize(), StgFATStrm::SetSize(), StgDataStrm::SetSize(), StgFATStrm::StgFATStrm(), and StgDirStrm::Store().
|
protected |
Definition at line 69 of file stgstrms.hxx.
Referenced by Copy(), StgDirStrm::Create(), GetIo(), StgFATStrm::GetPage(), StgDataStrm::GetPtr(), StgDataStrm::Init(), StgSmallStrm::Init(), StgDataStrm::Read(), scanBuildPageChainCache(), StgFATStrm::SetPage(), StgFATStrm::SetSize(), StgDataStrm::SetSize(), StgDirStrm::SetupEntry(), StgDirStrm::Store(), and StgDataStrm::Write().