databuffer module

binaryninja.databuffer.DataBuffer([...])

class DataBuffer(contents: str | bytes | DataBuffer | int = b'', handle=None)[source]

Bases: object

Parameters:

contents (str | bytes | DataBuffer | int) –

base64_decode() DataBuffer[source]
Return type:

DataBuffer

base64_encode() str[source]
Return type:

str

escape(null_terminates=False, escape_printable=False) str[source]
Return type:

str

unescape() DataBuffer[source]
Return type:

DataBuffer

zlib_compress() DataBuffer | None[source]
Return type:

DataBuffer | None

zlib_decompress() DataBuffer | None[source]
Return type:

DataBuffer | None

escape_string(text: bytes) str[source]
Parameters:

text (bytes) –

Return type:

str

unescape_string(text: bytes) DataBuffer[source]
Parameters:

text (bytes) –

Return type:

DataBuffer