summaryrefslogtreecommitdiff
path: root/simpleperf/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/utils.h')
-rw-r--r--simpleperf/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/simpleperf/utils.h b/simpleperf/utils.h
index a9f8aa6d..ebc96068 100644
--- a/simpleperf/utils.h
+++ b/simpleperf/utils.h
@@ -166,6 +166,12 @@ struct BinaryReader {
return true;
}
+ void Move(size_t size) {
+ if (CheckLeftSize(size)) {
+ head += size;
+ }
+ }
+
template <class T>
void Read(T& data) {
static_assert(std::is_standard_layout<T>::value, "not standard layout");