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

Class HexOutput

source code


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

Instance Methods [hide private]

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

Class Methods [hide private]
str
integer(cls, integer)
Returns: Text output.
source code
str
address(cls, address)
Returns: Text output.
source code
 
integer_list_file(cls, filename, values)
Write a list of integers to a file.
source code
 
string_list_file(cls, filename, values)
Write a list of strings to a file.
source code
 
mixed_list_file(cls, filename, values)
Write a list of mixed values to a file.
source code
Static Methods [hide private]
str
hexadecimal(data)
Convert binary data to a string of hexadecimal numbers.
source code
Class Variables [hide private]
int integer_size = 10
Size in characters of an outputted integer.
int address_size = 10
Size in characters of an outputted address.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

integer(cls, integer)
Class Method

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

address(cls, address)
Class Method

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

hexadecimal(data)
Static Method

source code 

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

source code 

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

source code 

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

source code 

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.

Class Variable Details [hide private]

integer_size

Size in characters of an outputted integer. This value is platform dependent.
Type:
int
Value:
10

address_size

Size in characters of an outputted address. This value is platform dependent.
Type:
int
Value:
10