android: util/format: fix generated sources rules
[mesa.git] / src / util / blob.h
index 9113331254afad0cb620d15e68a6da297944ba48..e1e156eb43fa1e40f9dc34d20a80f826f48c42f5 100644 (file)
@@ -183,6 +183,21 @@ blob_overwrite_bytes(struct blob *blob,
 bool
 blob_write_uint8(struct blob *blob, uint8_t value);
 
+/**
+ * Overwrite a uint8_t previously written to the blob.
+ *
+ * Writes a uint8_t value to an existing portion of the blob at an offset of
+ * \offset.  This data range must have previously been written to the blob by
+ * one of the blob_write_* calls.
+ *
+ * \return True unless the requested position or position+to_write lie outside
+ * the current blob's size.
+ */
+bool
+blob_overwrite_uint8(struct blob *blob,
+                     size_t offset,
+                     uint8_t value);
+
 /**
  * Add a uint16_t to a blob.
  *