Lines Matching refs:data
149 std::vector< char > & blob, T const & data, std::size_t alignment, in add() argument
152 *reinterpret_cast< T * >(align(blob, alignment, offset, sizeof (T))) = data; in add()
198 std::vector< char > & blob, std::size_t offset, MarshalData & data);
201 SbxVariable * variable, bool special, MarshalData & data, void ** buffer) in marshalString() argument
209 std::vector< char > * blob = data.newBlob(); in marshalString()
213 data.unmarshalStrings.push_back(StringData(variable, *buffer, special)); in marshalString()
219 MarshalData & data) in marshalStruct() argument
225 SbError e = marshal(false, props->Get(i), false, blob, offset, data); in marshalStruct()
235 MarshalData & data) in marshalArray() argument
247 false, arr->Get32(&idx[0]), false, blob, offset, data); in marshalArray()
267 std::vector< char > & blob, std::size_t offset, MarshalData & data) in marshal() argument
294 SbError e = marshalString(variable, special, data, &p); in marshal()
304 SbError e = marshalStruct(variable, blob, offset, data); in marshal()
321 SbError e = marshalArray(variable, blob, offset, data); in marshal()
335 add(blob, variable->data(), 4, offset); in marshal()
339 std::vector< char > * blob2 = data.newBlob(); in marshal()
341 SbError e = marshalString(variable, special, data, &p); in marshal()
351 std::vector< char > * blob2 = data.newBlob(); in marshal()
352 SbError e = marshalStruct(variable, *blob2, 0, data); in marshal()
358 data.unmarshal.push_back(UnmarshalData(variable, p)); in marshal()
368 std::vector< char > * blob2 = data.newBlob(); in marshal()
369 SbError e = marshalArray(variable, *blob2, 0, data); in marshal()
375 data.unmarshal.push_back(UnmarshalData(variable, p)); in marshal()
389 void const * unmarshal(SbxVariable * variable, void const * data) { in unmarshal() argument
394 variable->PutInteger(read< sal_Int16 >(&data)); in unmarshal()
397 variable->PutLong(read< sal_Int32 >(&data)); in unmarshal()
400 variable->PutSingle(read< float >(&data)); in unmarshal()
403 variable->PutDouble(read< double >(&data)); in unmarshal()
406 read< char * >(&data); // handled by unmarshalString in unmarshal()
410 data = reinterpret_cast< void const * >( in unmarshal()
412 reinterpret_cast< sal_uIntPtr >(data), in unmarshal()
417 data = unmarshal(props->Get(i), data); in unmarshal()
422 variable->PutBool(read< sal_Bool >(&data)); in unmarshal()
425 variable->PutByte(read< sal_uInt8 >(&data)); in unmarshal()
440 data = unmarshal(arr->Get32(&idx[0]), data); in unmarshal()
453 return data; in unmarshal()
456 SbError unmarshalString(StringData const & data, SbxVariable & result) { in unmarshalString() argument
458 if (data.buffer != 0) { in unmarshalString()
459 char const * p = static_cast< char const * >(data.buffer); in unmarshalString()
461 if (data.special) { in unmarshalString()
475 data.variable->PutString(String(str)); in unmarshalString()
489 MarshalData data; in call() local
502 data); in call()
565 for (std::vector< UnmarshalData >::iterator i(data.unmarshal.begin()); in call()
566 i != data.unmarshal.end(); ++i) in call()
570 for (std::vector< StringData >::iterator i(data.unmarshalStrings.begin()); in call()
571 i != data.unmarshalStrings.end(); ++i) in call()