Package winappdbg :: Module textio :: Class HexDump
[hide private]
[frames] | no frames]

Class HexDump


Static functions for hexadecimal dumps.

Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]
str
hexline(cls, data, separator=' ', width=None)
Dump a line of hexadecimal numbers from binary data.
str
hexblock(cls, data, address=None, separator=' ', width=16)
Dump a block of hexadecimal numbers from binary data.
Static Methods [hide private]
str
printable(data)
Replace unprintable characters with dots.
str
hexadecimal(data, separator='')
Convert binary data to a string of hexadecimal numbers.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

printable(data)
Static Method

 

Replace unprintable characters with dots.

Parameters:
  • data (str) - Binary data.
Returns: str
Printable text.

hexadecimal(data, separator='')
Static Method

 

Convert binary data to a string of hexadecimal numbers.

Parameters:
  • data (str) - Binary data.
  • separator (str) - Separator between the hexadecimal representation of each character.
Returns: str
Hexadecimal representation.

hexline(cls, data, separator=' ', width=None)
Class Method

 

Dump a line of hexadecimal numbers from binary data.

Parameters:
  • data (str) - Binary data.
  • separator (str) - Separator between the hexadecimal representation of each character.
  • width (int) - (Optional) Maximum number of characters to convert per text line.
Returns: str
Multiline output text.

hexblock(cls, data, address=None, separator=' ', width=16)
Class Method

 

Dump a block of hexadecimal numbers from binary data.

Parameters:
  • data (str) - Binary data.
  • address (str) - Memory address where the data was read from.
  • separator (str) - Separator between the hexadecimal representation of each character.
  • width (int) - (Optional) Maximum number of characters to convert per text line.
Returns: str
Multiline output text.