22#include <rtl/ustring.h>
31 if (!wstring)
return 0;
35 while (b[0] || b[1]) b +=
sizeof(sal_uInt16);
37 return ((b - wstring) /
sizeof(sal_uInt16));
42 sal_uInt32 len = rtl_ustr_getLength(
v) + 1;
46 for (
i = 0;
i < len;
i++)
51 return (buff - buffer);
65 for (
i = 0;
i < (len - 1);
i++)
76 return (buff - buffer);
sal_uInt32 readUINT16(const sal_uInt8 *buffer, sal_uInt16 &v)
sal_uInt32 writeUINT16(sal_uInt8 *buffer, sal_uInt16 v)
sal_uInt32 writeString(sal_uInt8 *buffer, const sal_Unicode *v)
sal_uInt32 readString(const sal_uInt8 *buffer, sal_Unicode *v, sal_uInt32 maxSize)
sal_uInt32 UINT16StringLen(const sal_uInt8 *wstring)