databuffer module

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

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

Bases: object

Parameters

contents (Union[str, bytes, DataBuffer, int]) –

base64_decode() DataBuffer[source]
Return type

DataBuffer

base64_encode() str[source]
Return type

str

escape() str[source]
Return type

str

unescape() DataBuffer[source]
Return type

DataBuffer

zlib_compress() Optional[DataBuffer][source]
Return type

Optional[DataBuffer]

zlib_decompress() Optional[DataBuffer][source]
Return type

Optional[DataBuffer]

escape_string(text: bytes) str[source]
Parameters

text (bytes) –

Return type

str

unescape_string(text: bytes) DataBuffer[source]
Parameters

text (bytes) –

Return type

DataBuffer