summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-08-01 02:59:59 -0400
committerJordan Wiens <jordan@psifertex.com>2016-08-01 02:59:59 -0400
commitea0e64893e59e814cc52ee0bdf7d27648a772895 (patch)
treee4bb5819edae879a4a0b587ccdc09b02aebcd4b7 /python
parent03d8d345d7a2ff623709508e511cdcbb542c4430 (diff)
variable cleanup in documentation missed a few
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/__init__.py b/python/__init__.py
index cc785ba0..36d870bb 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -1571,7 +1571,7 @@ class BinaryView(object):
>>> bv.read(0,4)
'\xcf\xfa\xed\xfe'
"""
- buf = DataBuffer(handle = core.BNReadViewBuffer(self.handle, offset, length))
+ buf = DataBuffer(handle = core.BNReadViewBuffer(self.handle, addr, length))
return str(buf)
def write(self, addr, data):
@@ -1589,7 +1589,7 @@ class BinaryView(object):
'AAAA'
"""
buf = DataBuffer(data)
- return core.BNWriteViewBuffer(self.handle, offset, buf.handle)
+ return core.BNWriteViewBuffer(self.handle, addr, buf.handle)
def insert(self, addr, data):
"""
@@ -1606,7 +1606,7 @@ class BinaryView(object):
'BBBBAAAA'
"""
buf = DataBuffer(data)
- return core.BNInsertViewBuffer(self.handle, offset, buf.handle)
+ return core.BNInsertViewBuffer(self.handle, addr, buf.handle)
def remove(self, addr, length):
"""
@@ -1622,7 +1622,7 @@ class BinaryView(object):
>>> bv.read(0,4)
'AAAA'
"""
- return core.BNRemoveViewData(self.handle, offset, length)
+ return core.BNRemoveViewData(self.handle, addr, length)
def get_modification(self, offset, length = None):
if length is None: