summaryrefslogtreecommitdiff
path: root/python/databuffer.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2024-08-22 12:55:49 -0600
committerRusty Wagner <rusty.wagner@gmail.com>2024-10-21 13:56:55 -0400
commitd8e3001e535fad178c621ff07418f81f25123dc4 (patch)
tree54c03cef2f0bdfd9a3b6df4334c81becb63e4993 /python/databuffer.py
parent0e281a30d73c0f31ef9442fef0346779164231ad (diff)
Allow multiple high level representations for display, add Pseudo Rust and a Pseudo Python example plugin
Diffstat (limited to 'python/databuffer.py')
-rw-r--r--python/databuffer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/databuffer.py b/python/databuffer.py
index ce8a68e7..36cf4430 100644
--- a/python/databuffer.py
+++ b/python/databuffer.py
@@ -143,8 +143,8 @@ class DataBuffer:
return False
return bytes(self) == bytes(other)
- def escape(self, null_terminates=False) -> str:
- return core.BNDataBufferToEscapedString(self.handle, null_terminates)
+ def escape(self, null_terminates=False, escape_printable=False) -> str:
+ return core.BNDataBufferToEscapedString(self.handle, null_terminates, escape_printable)
def unescape(self) -> 'DataBuffer':
return DataBuffer(handle=core.BNDecodeEscapedString(str(self)))