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

Type DataItem

object --+
         |
        DataItem


Represent a data item/component with in a record, which is a list of these things.
Method Summary
  __init__(self, _name, _type)
  encode(self, s, start)
Encode the value of this item based on the string s
  get(self)
  set(self, d)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  type

Class Variable Summary
str numeric_type = 'numeric'
str offset_from_prev = 'From Last Field'
str offset_from_start = 'From Start'
str string_type = 'string'
str struct_type = 'struct'

Method Details

encode(self, s, start=None)

Encode the value of this item based on the string s

Class Variable Details

numeric_type

Type:
str
Value:
'numeric'                                                              

offset_from_prev

Type:
str
Value:
'From Last Field'                                                      

offset_from_start

Type:
str
Value:
'From Start'                                                           

string_type

Type:
str
Value:
'string'                                                               

struct_type

Type:
str
Value:
'struct'                                                               

Generated by Epydoc 2.1 on Fri Aug 15 18:58:33 2008 http://epydoc.sf.net