summaryrefslogtreecommitdiffstats
path: root/source/core/slang-array-view.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-array-view.h')
-rw-r--r--source/core/slang-array-view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-array-view.h b/source/core/slang-array-view.h
index f6ac92004..99609ef69 100644
--- a/source/core/slang-array-view.h
+++ b/source/core/slang-array-view.h
@@ -72,6 +72,11 @@ namespace Slang
return -1;
}
+ bool containsMemory(const ThisType& rhs) const
+ {
+ return rhs.getBuffer() >= getBuffer() && rhs.end() <= end();
+ }
+
bool operator==(const ThisType& rhs) const
{
if (&rhs == this)