26#define REGTYPE_IEEE_NATIVE 1
28extern const sal_uInt32
magic;
33#define OFFSET_SIZE static_cast<sal_uInt32>(OFFSET_MAGIC + sizeof(magic))
34#define OFFSET_MINOR_VERSION static_cast<sal_uInt32>(OFFSET_SIZE + sizeof(sal_uInt32))
35#define OFFSET_MAJOR_VERSION static_cast<sal_uInt32>(OFFSET_MINOR_VERSION + sizeof(minorVersion))
36#define OFFSET_N_ENTRIES static_cast<sal_uInt32>(OFFSET_MAJOR_VERSION + sizeof(majorVersion))
37#define OFFSET_TYPE_SOURCE static_cast<sal_uInt32>(OFFSET_N_ENTRIES + sizeof(sal_uInt16))
38#define OFFSET_TYPE_CLASS static_cast<sal_uInt32>(OFFSET_TYPE_SOURCE + sizeof(sal_uInt16))
39#define OFFSET_THIS_TYPE static_cast<sal_uInt32>(OFFSET_TYPE_CLASS + sizeof(sal_uInt16))
40#define OFFSET_UIK static_cast<sal_uInt32>(OFFSET_THIS_TYPE + sizeof(sal_uInt16))
41#define OFFSET_DOKU static_cast<sal_uInt32>(OFFSET_UIK + sizeof(sal_uInt16))
42#define OFFSET_FILENAME static_cast<sal_uInt32>(OFFSET_DOKU + sizeof(sal_uInt16))
44#define OFFSET_N_SUPERTYPES static_cast<sal_uInt32>(OFFSET_FILENAME + sizeof(sal_uInt16))
45#define OFFSET_SUPERTYPES static_cast<sal_uInt32>(OFFSET_N_SUPERTYPES + sizeof(sal_uInt16))
47#define OFFSET_CP_SIZE static_cast<sal_uInt32>(OFFSET_SUPERTYPES + sizeof(sal_uInt16))
48#define OFFSET_CP static_cast<sal_uInt32>(OFFSET_CP_SIZE + sizeof(sal_uInt16))
50#define CP_OFFSET_ENTRY_SIZE 0
51#define CP_OFFSET_ENTRY_TAG static_cast<sal_uInt32>(CP_OFFSET_ENTRY_SIZE + sizeof(sal_uInt32))
52#define CP_OFFSET_ENTRY_DATA static_cast<sal_uInt32>(CP_OFFSET_ENTRY_TAG + sizeof(sal_uInt16))
54#define FIELD_OFFSET_ACCESS 0
55#define FIELD_OFFSET_NAME static_cast<sal_uInt32>(FIELD_OFFSET_ACCESS + sizeof(sal_uInt16))
56#define FIELD_OFFSET_TYPE static_cast<sal_uInt32>(FIELD_OFFSET_NAME + sizeof(sal_uInt16))
57#define FIELD_OFFSET_VALUE static_cast<sal_uInt32>(FIELD_OFFSET_TYPE + sizeof(sal_uInt16))
58#define FIELD_OFFSET_DOKU static_cast<sal_uInt32>(FIELD_OFFSET_VALUE + sizeof(sal_uInt16))
59#define FIELD_OFFSET_FILENAME static_cast<sal_uInt32>(FIELD_OFFSET_DOKU + sizeof(sal_uInt16))
61#define PARAM_OFFSET_TYPE 0
62#define PARAM_OFFSET_MODE static_cast<sal_uInt32>(PARAM_OFFSET_TYPE + sizeof(sal_uInt16))
63#define PARAM_OFFSET_NAME static_cast<sal_uInt32>(PARAM_OFFSET_MODE + sizeof(sal_uInt16))
65#define METHOD_OFFSET_SIZE 0
66#define METHOD_OFFSET_MODE static_cast<sal_uInt32>(METHOD_OFFSET_SIZE + sizeof(sal_uInt16))
67#define METHOD_OFFSET_NAME static_cast<sal_uInt32>(METHOD_OFFSET_MODE + sizeof(sal_uInt16))
68#define METHOD_OFFSET_RETURN static_cast<sal_uInt32>(METHOD_OFFSET_NAME + sizeof(sal_uInt16))
69#define METHOD_OFFSET_DOKU static_cast<sal_uInt32>(METHOD_OFFSET_RETURN + sizeof(sal_uInt16))
70#define METHOD_OFFSET_PARAM_COUNT static_cast<sal_uInt32>(METHOD_OFFSET_DOKU + sizeof(sal_uInt16))
72#define REFERENCE_OFFSET_TYPE 0
73#define REFERENCE_OFFSET_NAME static_cast<sal_uInt32>(REFERENCE_OFFSET_TYPE + sizeof(sal_uInt16))
74#define REFERENCE_OFFSET_DOKU static_cast<sal_uInt32>(REFERENCE_OFFSET_NAME + sizeof(sal_uInt16))
75#define REFERENCE_OFFSET_ACCESS static_cast<sal_uInt32>(REFERENCE_OFFSET_DOKU + sizeof(sal_uInt16))
96 buffer[0] =
static_cast<sal_uInt8>((
v >> 8) & 0xFF);
97 buffer[1] =
static_cast<sal_uInt8>((
v >> 0) & 0xFF);
99 return sizeof(sal_uInt16);
108 v = *buffer++;
v <<= 8;
110 return sizeof(sal_uInt16);
115 buffer[0] =
static_cast<sal_uInt8>((
v >> 24) & 0xFF);
116 buffer[1] =
static_cast<sal_uInt8>((
v >> 16) & 0xFF);
117 buffer[2] =
static_cast<sal_uInt8>((
v >> 8) & 0xFF);
118 buffer[3] =
static_cast<sal_uInt8>((
v >> 0) & 0xFF);
120 return sizeof(sal_Int32);
132 return sizeof(sal_Int32);
137 buffer[0] =
static_cast<sal_uInt8>((
v >> 24) & 0xFF);
138 buffer[1] =
static_cast<sal_uInt8>((
v >> 16) & 0xFF);
139 buffer[2] =
static_cast<sal_uInt8>((
v >> 8) & 0xFF);
140 buffer[3] =
static_cast<sal_uInt8>((
v >> 0) & 0xFF);
142 return sizeof(sal_uInt32);
151 v = *buffer++;
v <<= 8;
152 v |= *buffer++;
v <<= 8;
153 v |= *buffer++;
v <<= 8;
155 return sizeof(sal_uInt32);
160 sal_uInt32
size = strlen(
v) + 1;
162 memcpy(buffer,
v,
size);
169 sal_uInt32
size = strlen(
reinterpret_cast<const char*
>(buffer)) + 1;
175 memcpy(
v, buffer,
size);
sal_uInt32 writeString(sal_uInt8 *buffer, const sal_Unicode *v)
sal_uInt32 readUINT16(const sal_uInt8 *buffer, sal_uInt16 &v)
const sal_uInt16 majorVersion
sal_uInt32 writeUINT32(sal_uInt8 *buffer, sal_uInt32 v)
sal_uInt32 readString(const sal_uInt8 *buffer, sal_Unicode *v, sal_uInt32 maxSize)
sal_uInt32 readINT32(const sal_uInt8 *buffer, sal_Int32 &v)
sal_uInt32 readUINT32(const sal_uInt8 *buffer, sal_uInt32 &v)
sal_uInt32 writeINT32(sal_uInt8 *buffer, sal_Int32 v)
const sal_uInt16 minorVersion
sal_uInt32 UINT16StringLen(const sal_uInt8 *wstring)
sal_uInt32 readUtf8(const sal_uInt8 *buffer, char *v, sal_uInt32 maxSize)
sal_uInt32 writeUINT16(sal_uInt8 *buffer, sal_uInt16 v)
sal_uInt32 writeUtf8(sal_uInt8 *buffer, const char *v)