summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2015-08-26 23:22:58 -0400
committerRusty Wagner <rusty@vector35.com>2015-08-26 23:22:58 -0400
commit2daf9f7095bcac83b5bb40cce233622a12087af6 (patch)
treeb0c5f21b1b0885d78f8b5e74c05572c2720d2834 /binaryview.cpp
parent93e62cfbf1d5df345020b8b28cc514301dd26064 (diff)
Get some of the binary view APIs into Python
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 2a7677c9..c1a6c135 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -152,11 +152,16 @@ BinaryView::BinaryView(const std::string& typeName, FileMetadata* file)
{
BNCustomBinaryView view;
view.context = this;
+ view.init = InitCallback;
view.read = ReadCallback;
view.write = WriteCallback;
view.insert = InsertCallback;
view.remove = RemoveCallback;
view.getModification = GetModificationCallback;
+ view.isValidOffset = IsValidOffsetCallback;
+ view.isOffsetReadable = IsOffsetReadableCallback;
+ view.isOffsetWritable = IsOffsetWritableCallback;
+ view.isOffsetExecutable = IsOffsetExecutableCallback;
view.getStart = GetStartCallback;
view.getLength = GetLengthCallback;
view.getEntryPoint = GetEntryPointCallback;