23#include <rtl/string.h>
25#include <osl/mutex.hxx>
35const sal_uInt32 OStoreLockBytes::m_nTypeId(0x94190310);
37OStoreLockBytes::OStoreLockBytes()
38 : m_bWriteable (false)
57 rtl_String
const *pPath,
58 rtl_String
const *pName,
65 if (!(pPath &&
pName))
126 if ((nOffset + nBytes) > nDataLen)
127 nBytes = nDataLen - nOffset;
132 while ((0 < nBytes) && (nOffset < nDataLen))
337 if (nSize == nDataLen)
340 if (nSize < nDataLen)
371 sal_uInt32 nPage = aDescr.
m_nPage;
storeError write(sal_uInt32 nPage, OStoreDataPageObject &rData, OStorePageBIOS &rBIOS)
write (external data page).
sal_uInt32 attrib() const
attrib.
storeError read(sal_uInt32 nPage, OStoreDataPageObject &rData, OStorePageBIOS &rBIOS) const
read (external data page).
sal_uInt32 dataLength() const
dataLength.
storeError truncate(sal_uInt32 nPage, OStorePageBIOS &rBIOS)
truncate (external data page).
static const sal_uInt32 m_nTypeId
IStoreHandle TypeId.
storeError create(OStorePageManager *pManager, rtl_String const *pPath, rtl_String const *pName, storeAccessMode eAccessMode)
create (two-phase construction).
virtual bool isKindOf(sal_uInt32 nMagic) override
IStoreHandle.
inode_holder_type m_xNode
storeError writeAt(sal_uInt32 nOffset, const void *pBuffer, sal_uInt32 nBytes, sal_uInt32 &rnDone)
Write at Offset from Buffer.
storeError setSize(sal_uInt32 nSize)
setSize.
rtl::Reference< OStorePageManager > m_xManager
virtual ~OStoreLockBytes() override
storeError readAt(sal_uInt32 nOffset, void *pBuffer, sal_uInt32 nBytes, sal_uInt32 &rnDone)
Read at Offset into Buffer.
sal_uInt32 location() const
Location.
std::shared_ptr< PageData > & get()
std::shared_ptr< PageData > & get()
std::unique_ptr< sal_Int32[]> pData
constexpr OUStringLiteral aData
Old OStorePageCache implementation.
sal_uInt16 capacity() const
sal_uInt32 m_nPage
Representation.
sal_uInt16 capacity() const
capacity.
ChunkScope scope(sal_uInt32 nPosition) const
scope (internal).
storeAccessMode
Access Mode enumeration.
storeError
Error Code enumeration.
@ store_E_InvalidParameter
@ store_E_AccessViolation
constexpr sal_uInt32 STORE_ATTRIB_ISLINK
Attributes (predefined).
constexpr sal_uInt32 STORE_ATTRIB_ISFILE