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

Class DataItem

source code

object --+
         |
        DataItem
Known Subclasses:

Represent a data item/component with in a record, which is a list of these things.

Instance Methods [hide private]
 
__init__(self, _name, _type='numeric')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_get_type(self) source code
 
_set_type(self, _type) 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 object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  offset_from_start = 'From Start'
  offset_from_prev = 'From Last Field'
  string_type = 'string'
  numeric_type = 'numeric'
  struct_type = 'struct'
Properties [hide private]
  type

Inherited from object: __class__

Method Details [hide private]

__init__(self, _name, _type='numeric')
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

type

Get Method:
_get_type(self)
Set Method:
_set_type(self, _type)