Lines Matching defs:data
40 * additional meta-data to describe the data written). Therefore, it is the
41 * caller's responsibility to ensure that any data can be read later, (either
42 * by knowing exactly what data is expected, or by writing to the blob
43 * sufficient meta-data to describe what has been written).
50 /* The data actually written to the blob. Never read or write this directly
54 uint8_t *data;
56 /** Number of bytes that have been allocated for \c data. */
59 /** The number of bytes that have actual data written to them. */
62 /** True if \c data a fixed allocation that we cannot resize
84 const uint8_t *data;
99 * A fixed-size blob has a fixed block of data that will not be freed on
103 * If a fixed-size blob has a NULL data pointer then the data is written but
105 * that will be required to write a given data structure.
108 blob_init_fixed(struct blob *blob, void *data, size_t size);
113 * If \blob was initialized with blob_init_fixed, the data pointer is
120 free(blob->data);
137 * Add some unstructured, fixed-size data to a blob.
174 * Overwrite some data previously written to the blob.
176 * Writes data to an existing portion of the blob at an offset of \offset.
177 * This data range must have previously been written to the blob by one of the
203 * \offset. This data range must have previously been written to the blob by
218 * beginning of the blob's data, so some padding bytes may be added to the
231 * beginning of the blob's data, so some padding bytes may be added to the
244 * \offset. This data range must have previously been written to the blob by
268 * beginning of the blob's data, so some padding bytes may be added to the
281 * beginning of the blob's data, so some padding bytes may be added to the
294 * \offset. This data range must have previously been written to the blob by
319 * read elements from the data array.
321 * For all of the blob_read_* functions, if there is insufficient data
327 blob_reader_init(struct blob_reader *blob, const void *data, size_t size);
333 * particular alignment. Note that this only aligns relative to blob->data
334 * and the alignment of the resulting pointer is only guaranteed if blob->data
341 * Read some unstructured, fixed-size data from the current location, (and
342 * update the current location to just past this data).
344 * \note The memory returned belongs to the data underlying the blob reader. The
345 * caller must copy the data in order to use it after the lifetime of the data
354 * Read some unstructured, fixed-size data from the current location, copying
355 * it to \dest (and update the current location to just past this data)
380 * beginning of the blob's data, so some padding bytes may be skipped.
392 * beginning of the blob's data, so some padding bytes may be skipped.
404 * beginning of the blob's data, so some padding bytes may be skipped.
416 * beginning of the blob's data, so some padding bytes may be skipped.
427 * \note The memory returned belongs to the data underlying the blob reader. The
429 * of the data underlying the blob reader.