projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
freedreno/drm: fix relocs in nested stateobjs
[mesa.git]
/
src
/
compiler
/
blob.h
diff --git
a/src/compiler/blob.h
b/src/compiler/blob.h
index e224dbbece08256ea8f42d086d23edda01c7c871..b56fa4b2fe012d028c2277e81dfb749eeac76538 100644
(file)
--- a/
src/compiler/blob.h
+++ b/
src/compiler/blob.h
@@
-135,7
+135,7
@@
blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write);
* \return An offset to space allocated within \blob to which \to_write bytes
* can be written, (or -1 in case of any allocation error).
*/
* \return An offset to space allocated within \blob to which \to_write bytes
* can be written, (or -1 in case of any allocation error).
*/
-
ssize
_t
+
intptr
_t
blob_reserve_bytes(struct blob *blob, size_t to_write);
/**
blob_reserve_bytes(struct blob *blob, size_t to_write);
/**
@@
-143,7
+143,7
@@
blob_reserve_bytes(struct blob *blob, size_t to_write);
* space. Note that this must be used if later reading with \sa
* blob_read_uint32, since it aligns the offset correctly.
*/
* space. Note that this must be used if later reading with \sa
* blob_read_uint32, since it aligns the offset correctly.
*/
-
ssize
_t
+
intptr
_t
blob_reserve_uint32(struct blob *blob);
/**
blob_reserve_uint32(struct blob *blob);
/**
@@
-151,7
+151,7
@@
blob_reserve_uint32(struct blob *blob);
* space. Note that this must be used if later reading with \sa
* blob_read_intptr, since it aligns the offset correctly.
*/
* space. Note that this must be used if later reading with \sa
* blob_read_intptr, since it aligns the offset correctly.
*/
-
ssize
_t
+
intptr
_t
blob_reserve_intptr(struct blob *blob);
/**
blob_reserve_intptr(struct blob *blob);
/**
@@
-272,7
+272,7
@@
blob_write_string(struct blob *blob, const char *str);
* current value is unchanged before and after the call.
*/
void
* current value is unchanged before and after the call.
*/
void
-blob_reader_init(struct blob_reader *blob, const
uint8_t
*data, size_t size);
+blob_reader_init(struct blob_reader *blob, const
void
*data, size_t size);
/**
* Read some unstructured, fixed-size data from the current location, (and
/**
* Read some unstructured, fixed-size data from the current location, (and
@@
-292,7
+292,13
@@
blob_read_bytes(struct blob_reader *blob, size_t size);
* it to \dest (and update the current location to just past this data)
*/
void
* it to \dest (and update the current location to just past this data)
*/
void
-blob_copy_bytes(struct blob_reader *blob, uint8_t *dest, size_t size);
+blob_copy_bytes(struct blob_reader *blob, void *dest, size_t size);
+
+/**
+ * Skip \size bytes within the blob.
+ */
+void
+blob_skip_bytes(struct blob_reader *blob, size_t size);
/**
* Read a uint32_t from the current location, (and update the current location
/**
* Read a uint32_t from the current location, (and update the current location