summaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index 1c25a66a68..07ffdf8231 100644
--- a/util/cbfstool/common.h
+++ b/util/cbfstool/common.h
@@ -54,6 +54,11 @@ static inline size_t buffer_offset(const struct buffer *b)
return b->offset;
}
+static inline void *buffer_end(const struct buffer *b)
+{
+ return b->data + b->size;
+}
+
/*
* Shrink a buffer toward the beginning of its previous space.
* Afterward, buffer_delete() remains the means of cleaning it up. */