summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2014-11-12 23:16:51 -0800
committerCarl Worth <[email protected]>2015-01-16 13:47:40 -0800
commitffcad3a54839bd6704b4cac5dfe9f52a4f299dae (patch)
treeadaa807fc49b62bb3a8cf2f0889733351accc031 /docs
parent1c9877327ead37b7dd5a0ca3a8c7912e924328e5 (diff)
glsl: Add blob_overwrite_bytes and blob_overwrite_uint32
These functions are useful when serializing an unknown number of items to a blob. The caller can first save the current offset, write a placeholder uint32, write out (and count) the items, then use blob_overwrite_uint32 with the saved offset to replace the placeholder value. Then, when deserializing, the reader will first read the count and know how many subsequent items to expect. (I wrote this code after reading a very similar patch written by Tapani when he wrote serialization code for IR. Since I re-used the idea of his code so directly, I've credited him as the author of this code. --Carl) Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions