Module hexeditor :: Class NumericDataItem
[hide private]
[frames] | no frames]

Class NumericDataItem

source code

object --+    
         |    
  DataItem --+
             |
            NumericDataItem

Instance Methods [hide private]
 
__init__(self, name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get(self) source code
 
set(self, d) source code
 
encode(self, s, start=None)
Encode the value of this item based on the string s
source code

Inherited from DataItem (private): _get_type, _set_type

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

Class Variables [hide private]
  _fmts = {False: {False: {1: 'b', 2: '>h', 4: '>i'}, True: {1: ...

Inherited from DataItem: numeric_type, offset_from_prev, offset_from_start, string_type, struct_type

Properties [hide private]

Inherited from DataItem: type

Inherited from object: __class__

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

get(self)

source code 
Overrides: DataItem.get

set(self, d)

source code 
Overrides: DataItem.set

encode(self, s, start=None)

source code 

Encode the value of this item based on the string s

Overrides: DataItem.encode
(inherited documentation)

Class Variable Details [hide private]

_fmts

Value:
{False: {False: {1: 'b', 2: '>h', 4: '>i'},
         True: {1: 'b', 2: '<h', 4: '<i'}},
 True: {False: {1: 'B', 2: '>H', 4: '>I'},
        True: {1: 'B', 2: '<H', 4: '<I'}}}