Peach :: Transformers :: type :: IntToHex :: Class IntToHex
[hide private]

Class IntToHex

source code


Transform an integer into hex.

Instance Methods [hide private]
 
__init__(self, withPrefix=0)
Create IntToHex object.
source code
string
realEncode(self, data)
Override this to implement your transform.
source code

Inherited from transformer.Transformer: decode, encode, getAnotherTransformer, realDecode, setAnotherTransformer, transform

Method Details [hide private]

__init__(self, withPrefix=0)
(Constructor)

source code 

Create IntToHex object. withPrefix flag indicates if 0x prefix should be tagged onto string. Default is no.

Parameters:
  • anotherTransformer - A transformer to run next
Overrides: transformer.Transformer.__init__

realEncode(self, data)

source code 

Override this to implement your transform.

Parameters:
  • data - Data to transform
Returns: string
transformed data
Overrides: transformer.Transformer.realEncode
(inherited documentation)