Ejemplo n.º 1
0
 def __init__(self, type, offset, vm=None,
              length=1, parent=None, profile=None, name=None, **args):
     ## Allow length to be a callable:
     try:
         length = length(parent)
     except:
         pass
     
     ## length must be an integer
     NativeType.__init__(self, type, offset, vm, parent=parent, profile=profile,
                         name=name, format_string="%ds" % length)
Ejemplo n.º 2
0
 def __init__(self,
              type,
              offset,
              vm=None,
              parent=None,
              profile=None,
              name=None,
              **args):
     NativeType.__init__(self,
                         type,
                         offset,
                         vm,
                         parent=parent,
                         profile=profile,
                         name=name,
                         format_string="q")
Ejemplo n.º 3
0
    def __init__(self,
                 type,
                 offset,
                 vm=None,
                 length=1,
                 parent=None,
                 profile=None,
                 name=None,
                 **args):
        ## Allow length to be a callable:
        try:
            length = length(parent)
        except:
            pass

        ## length must be an integer
        NativeType.__init__(self,
                            type,
                            offset,
                            vm,
                            parent=parent,
                            profile=profile,
                            name=name,
                            format_string="%ds" % length)
Ejemplo n.º 4
0
 def v(self):
     return windows_to_unix_time(NativeType.v(self))
Ejemplo n.º 5
0
 def v(self):
     return windows_to_unix_time(NativeType.v(self))
Ejemplo n.º 6
0
 def __init__(self, type, offset, vm=None,
              parent=None, profile=None, name=None, **args):
     NativeType.__init__(self, type, offset, vm, parent=parent, profile=profile,
                         name=name, format_string="q")