From 3640d875f66df1595078d5b82eba39118ab112ca Mon Sep 17 00:00:00 2001 From: lzwdgc Date: Tue, 8 Dec 2020 18:42:34 +0300 Subject: [PATCH] Rename check method to be able to be included in UE4. --- src/common/buffer.cpp | 2 +- src/common/buffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/buffer.cpp b/src/common/buffer.cpp index ec327b8..749e2c9 100644 --- a/src/common/buffer.cpp +++ b/src/common/buffer.cpp @@ -165,7 +165,7 @@ void buffer::seek(uint32_t size) const skip(size); } -bool buffer::check(int index) const +bool buffer::check_pos(int index) const { return index_ == index; } diff --git a/src/common/buffer.h b/src/common/buffer.h index e8541de..9236935 100644 --- a/src/common/buffer.h +++ b/src/common/buffer.h @@ -119,7 +119,7 @@ public: void skip(int n) const; uint32_t end() const { return end_; } bool eof() const; - bool check(int index) const; + bool check_pos(int index) const; void reset() const; uint32_t index() const;