Lines Matching refs:blob
74 char * address(std::vector< char > & blob) { in address() argument
75 return blob.empty() ? 0 : &blob[0]; in address()
135 std::vector< char > & blob, std::size_t alignment, std::size_t offset, in align()
138 std::vector< char >::size_type n = blob.size(); in align()
140 blob.resize(n + add); //TODO: overflow in align()
141 return address(blob) + n; in align()
145 std::vector< char > & blob, T const & data, std::size_t alignment, in add()
148 *reinterpret_cast< T * >(align(blob, alignment, offset, sizeof (T))) = data; in add()
194 std::vector< char > & blob, std::size_t offset, MarshalData & data);
205 std::vector< char > * blob = data.newBlob(); in marshalString() local
206 blob->insert( in marshalString()
207 blob->begin(), str.getStr(), str.getStr() + str.getLength() + 1); in marshalString()
208 *buffer = address(*blob); in marshalString()
214 SbxVariable * variable, std::vector< char > & blob, std::size_t offset, in marshalStruct()
221 SbError e = marshal(false, props->Get(i), false, blob, offset, data); in marshalStruct()
230 SbxVariable * variable, std::vector< char > & blob, std::size_t offset, in marshalArray()
243 false, arr->Get32(&idx[0]), false, blob, offset, data); in marshalArray()
263 std::vector< char > & blob, std::size_t offset, MarshalData & data) in marshal()
276 add(blob, variable->GetInteger(), outer ? 4 : 2, offset); in marshal()
279 add(blob, variable->GetLong(), 4, offset); in marshal()
282 add(blob, variable->GetSingle(), 4, offset); in marshal()
285 add(blob, variable->GetDouble(), outer ? 4 : 8, offset); in marshal()
294 add(blob, p, 4, offset); in marshal()
299 align(blob, outer ? 4 : alignment(variable), offset, 0); in marshal()
300 SbError e = marshalStruct(variable, blob, offset, data); in marshal()
307 add(blob, variable->GetBool(), outer ? 4 : 1, offset); in marshal()
310 add(blob, variable->GetByte(), outer ? 4 : 1, offset); in marshal()
317 SbError e = marshalArray(variable, blob, offset, data); in marshal()
331 add(blob, variable->data(), 4, offset); in marshal()
342 add(blob, address(*blob2), 4, offset); in marshal()
356 add(blob, p, 4, offset); in marshal()
373 add(blob, p, 4, offset); in marshal()