diff options
author | Jordan Justen <[email protected]> | 2018-04-09 01:07:03 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2018-07-09 23:02:33 -0700 |
commit | 3a133223b3f10f19bbdab7a6f7da73e55a914185 (patch) | |
tree | f6b0cf809fd4fad898f48abee5ae1f6b95c42eb3 /src/compiler/blob.c | |
parent | 8e7ee7433e6475156bd1e7be81129985eb0eac01 (diff) |
compiler/blob: Add blob_skip_bytes
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/blob.c')
-rw-r--r-- | src/compiler/blob.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/blob.c b/src/compiler/blob.c index 5e8671b7b44..c89092e1cf3 100644 --- a/src/compiler/blob.c +++ b/src/compiler/blob.c @@ -291,6 +291,13 @@ blob_copy_bytes(struct blob_reader *blob, void *dest, size_t size) memcpy(dest, bytes, size); } +void +blob_skip_bytes(struct blob_reader *blob, size_t size) +{ + if (ensure_can_read (blob, size)) + blob->current += size; +} + /* These next three read functions have identical form. If we add any beyond * these first three we should probably switch to generating these with a * preprocessor macro. |