24#include <rtl/textcvt.h>
26#include <rtl/ustring.h>
28#include <osl/mutex.hxx>
39 rtl_TextToUnicodeConverter hConverter,
40 const char *pSrcBuffer, sal_Size nSrcLength,
43 sal_uInt32 nCvtInfo = 0;
44 sal_Size nCvtBytes = 0;
45 return rtl_convertTextToUnicode (
47 pSrcBuffer, nSrcLength,
48 pDstBuffer, nDstLength,
49 OSTRING_TO_OUSTRING_CVTFLAGS,
50 &nCvtInfo, &nCvtBytes);
53const sal_uInt32 OStoreDirectory_Impl::m_nTypeId(0x89191107);
55OStoreDirectory_Impl::OStoreDirectory_Impl()
68 rtl_destroyTextToUnicodeConverter (
m_hTextCvt);
78 rtl_String
const *pPath,
79 rtl_String
const *pName,
86 if (!(pPath &&
pName))
129 m_hTextCvt = rtl_createTextToUnicodeConverter(RTL_TEXTENCODING_UTF8);
153 sal_Int32
n = rtl_str_getLength (
p);
sal_uInt32 attrib() const
attrib.
sal_uInt32 path() const
path.
OStorePageDescriptor m_aDescr
storeError create(OStorePageManager *pManager, rtl_String const *pPath, rtl_String const *pName, storeAccessMode eAccessMode)
create (two-phase construction).
static const sal_uInt32 m_nTypeId
IStoreHandle TypeId.
rtl::Reference< OStorePageManager > m_xManager
virtual ~OStoreDirectory_Impl() override
storeError iterate(storeFindData &rFindData)
iterate.
rtl_TextToUnicodeConverter m_hTextCvt
virtual bool isKindOf(sal_uInt32 nTypeId) override
Replaces dynamic_cast type checking.
std::shared_ptr< PageData > & get()
Old OStorePageCache implementation.
sal_uInt32 htonl(sal_uInt32 h)
sal_uInt32 ntohl(sal_uInt32 n)
static sal_Size convertTextToUnicode(rtl_TextToUnicodeConverter hConverter, const char *pSrcBuffer, sal_Size nSrcLength, sal_Unicode *pDstBuffer, sal_Size nDstLength)
sal_Unicode m_pszName[STORE_MAXIMUM_NAMESIZE]
Name.
sal_uInt32 m_nAttrib
Attributes.
sal_Int32 m_nLength
Name Length.
sal_uInt32 m_nReserved
Reserved for internal use.
NameBlock m_aNameBlock
Representation.
sal_uInt32 m_nAddr
Representation.
sal_uInt32 m_nLow
Representation.
sal_uInt32 location() const
Operation.
char m_pData[STORE_MAXIMUM_NAMESIZE]
constexpr sal_uInt32 STORE_ATTRIB_ISDIR
storeAccessMode
Access Mode enumeration.
storeError
Error Code enumeration.
@ store_E_InvalidParameter
constexpr sal_uInt32 STORE_ATTRIB_ISLINK
Attributes (predefined).
constexpr auto STORE_MAXIMUM_NAMESIZE
NameSize (enforced) limit.