25#include <osl/endian.h>
28#include <rtl/ustrbuf.hxx>
31#include <osl/diagnose.h>
36 : mn_offset(0), mn_size(0)
41 nSize = std::min<sal_uInt32>(nRemainingSize, nSize);
42 m_pData = o3tl::make_shared_array<sal_uInt8>(nSize);
45 OSL_ENSURE(
mn_size == nSize,
"short read in WW8Struct::WW8Struct");
78 sal_uInt32 nStartOff =
mn_offset + nOffset;
87 aResult =
aBuf.makeStringAndClear();
90 SAL_INFO(
"sw.ww8.level2",
"<WW8Struct-getUString offset=\"" << nOffset
91 <<
"\" count=\"" <<
nCount <<
"\">" << aResult <<
"</WW8Struct-getUString>" );
std::size_t ReadBytes(void *pData, std::size_t nSize)
sal_uInt64 remainingSize()
sal_uInt8 getU8(sal_uInt32 nOffset)
std::shared_ptr< sal_uInt8 > m_pData
sal_uInt16 getU16(sal_uInt32 nOffset)
virtual ~WW8Struct() override
WW8Struct(SvStream &rSt, sal_uInt32 nPos, sal_uInt32 nSize)
OUString getUString(sal_uInt32 nOffset, sal_Int32 nCount)
#define SAL_INFO(area, stream)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
TOOLS_DLLPUBLIC bool checkSeek(SvStream &rSt, sal_uInt64 nOffset)