Lines Matching refs:data

25 	static ancillary_data* FromData(void* data)
27 return (ancillary_data*)((char*)data - _ALIGN(sizeof(ancillary_data)));
54 while (ancillary_data* data = container->data_list.RemoveHead()) {
55 if (data->destructor != NULL)
56 data->destructor(&data->header, data->Data());
57 free(data);
63 Adds ancillary data to the given container.
66 \param header Description of the data.
67 \param data If not \c NULL, the data are copied into the allocated storage.
69 data as parameter when the container is destroyed.
70 \param _allocatedData Will be set to the storage allocated for the data.
75 const ancillary_data_header* header, const void* data,
98 if (data != NULL)
99 memcpy(ancillaryData->Data(), data, header->len);
109 Removes ancillary data from the given container. The associated memory is
110 freed, i.e. the \a data pointer must no longer be used after calling this
112 the data.
115 \param data Pointer to the data to be removed (as returned by
118 add_ancillary_data(), is invoked for the data.
122 remove_ancillary_data(ancillary_data_container* container, void* data,
125 if (data == NULL)
128 ancillary_data *ancillaryData = ancillary_data::FromData(data);
144 Moves all ancillary data from container \c from to the end of the list of
145 ancillary data of container \c to.
147 \param from The container from which to remove the ancillary data.
148 \param to The container to which to add the ancillary data.
149 \return A pointer to the first of the moved ancillary data, if any, \c NULL
167 Returns the next ancillary data. When iterating through the data, initially
169 previously returned data pointer. After the last item, \c NULL is returned.
171 Note, that it is not safe to call remove_ancillary_data() for a data item
176 \param previousData The pointer to the previous data returned by this
178 \param header Pointer to allocated storage into which the data description
180 \return A pointer to the next ancillary data in the container. \c NULL after