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

Class HexOutput


Static functions for user output parsing. The counterparts for each method are in the HexInput class.

Instance Methods [hide private]

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

Class Methods [hide private]
 
integer_list_file(cls, filename, values)
Write a list of integers to a file.
 
string_list_file(cls, filename, values)
Write a list of strings to a file.
 
mixed_list_file(cls, filename, values)
Write a list of mixed values to a file.
Static Methods [hide private]
str
integer(integer)
Returns: Text output.
str
address(address)
Returns: Text output.
str
hexadecimal(data)
Convert binary data to a string of hexadecimal numbers.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

integer(integer)
Static Method

 
Parameters:
  • integer (int) - Integer.
Returns: str
Text output.

address(address)
Static Method

 
Parameters:
  • address (int) - Memory address.
Returns: str
Text output.

hexadecimal(data)
Static Method

 

Convert binary data to a string of hexadecimal numbers.

Parameters:
  • data (str) - Binary data.
Returns: str
Hexadecimal representation.

integer_list_file(cls, filename, values)
Class Method

 

Write a list of integers to a file. If a file of the same name exists, it's contents are replaced.

See HexInput.integer_list_file for a description of the file format.

Parameters:
  • filename (str) - Name of the file to write.
  • values (list( int )) - List of integers to write to the file.

string_list_file(cls, filename, values)
Class Method

 

Write a list of strings to a file. If a file of the same name exists, it's contents are replaced.

See HexInput.string_list_file for a description of the file format.

Parameters:
  • filename (str) - Name of the file to write.
  • values (list( int )) - List of strings to write to the file.

mixed_list_file(cls, filename, values)
Class Method

 

Write a list of mixed values to a file. If a file of the same name exists, it's contents are replaced.

See HexInput.mixed_list_file for a description of the file format.

Parameters:
  • filename (str) - Name of the file to write.
  • values (list( int )) - List of mixed values to write to the file.