diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 4ae22fcfb..ea1cdc612 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -200,8 +200,8 @@ public: UNREACHABLE(); } - bool IsValidMapping(size_t offset, size_t size) const { - return (offset + size) <= backing_size; + bool IsValidMapping(size_t offset, size_t length) const { + return (offset + length) <= backing_size; } bool IsDirectMappingEnabled() const { @@ -611,8 +611,8 @@ public: virtual_base = nullptr; } - bool IsValidMapping(size_t offset, size_t size) const { - return (offset + size) <= backing_size; + bool IsValidMapping(size_t offset, size_t length) const { + return (offset + length) <= backing_size; } bool IsDirectMappingEnabled() const { @@ -692,7 +692,7 @@ public: void EnableDirectMappedAddress() {} - bool IsValidMapping(size_t offset, size_t size) const { + bool IsValidMapping(size_t offset, size_t length) const { return false; }