summaryrefslogtreecommitdiff
path: root/databuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'databuffer.cpp')
-rw-r--r--databuffer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/databuffer.cpp b/databuffer.cpp
index 0e11de8e..4bcd930b 100644
--- a/databuffer.cpp
+++ b/databuffer.cpp
@@ -66,6 +66,12 @@ void* DataBuffer::GetDataAt(size_t offset)
}
+const void* DataBuffer::GetDataAt(size_t offset) const
+{
+ return BNGetDataBufferContentsAt(m_buffer, offset);
+}
+
+
size_t DataBuffer::GetLength() const
{
return BNGetDataBufferLength(m_buffer);