summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 99ba7044..f7896a45 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -5829,6 +5829,18 @@ namespace BinaryNinja {
*/
DataBuffer ReadBuffer(uint64_t offset, size_t len);
+ /*! GetDataPointer returns a pointer to the underlying data for zero-copy access
+
+ \return pointer to data if available for zero-copy access, nullptr otherwise
+ */
+ const uint8_t* GetDataPointer() const;
+
+ /*! GetDataLength returns the length of the underlying data
+
+ \return length of data if available for zero-copy access, 0 otherwise
+ */
+ size_t GetDataLength() const;
+
/*! Write writes `len` bytes data at address `dest` to virtual address `offset`
\param offset virtual address to write to