RetroArch
Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
pkg.Struct Class Reference
Inheritance diagram for pkg.Struct:
[legend]
Collaboration diagram for pkg.Struct:
[legend]

Public Member Functions

def string (cls, len, offset=0, encoding=None, stripNulls=False, value='')
 
def __init__ (self, func=None, unpack=None, **kwargs)
 
def __trace__ (self, frame, event, arg)
 
def __setattr__ (self, name, value)
 
def __getattr__ (self, name)
 
def __len__ (self)
 
def unpack (self, data, pos=0)
 
def pack (self)
 
def __getitem__ (self, value)
 

Static Public Attributes

 int8 = StructType(('b', 1))
 
 uint8 = StructType(('B', 1))
 
 int16 = StructType(('h', 2))
 
 uint16 = StructType(('H', 2))
 
 int32 = StructType(('l', 4))
 
 uint32 = StructType(('L', 4))
 
 int64 = StructType(('q', 8))
 
 uint64 = StructType(('Q', 8))
 
 float = StructType(('f', 4))
 
 string = classmethod(string)
 
string LE = '<'
 
string BE = '>'
 

Private Attributes

 __defs__
 
 __sizes__
 
 __attrs__
 
 __values__
 
 __next__
 
 __baked__
 
 __frame__
 

Static Private Attributes

tuple __slots__ = ('__attrs__', '__baked__', '__defs__', '__endian__', '__next__', '__sizes__', '__values__')
 
string __endian__ = '<'
 

Constructor & Destructor Documentation

◆ __init__()

def pkg.Struct.__init__ (   self,
  func = None,
  unpack = None,
**  kwargs 
)

Member Function Documentation

◆ __getattr__()

def pkg.Struct.__getattr__ (   self,
  name 
)

◆ __getitem__()

def pkg.Struct.__getitem__ (   self,
  value 
)

◆ __len__()

def pkg.Struct.__len__ (   self)

◆ __setattr__()

def pkg.Struct.__setattr__ (   self,
  name,
  value 
)

◆ __trace__()

def pkg.Struct.__trace__ (   self,
  frame,
  event,
  arg 
)

◆ pack()

def pkg.Struct.pack (   self)

◆ string()

def pkg.Struct.string (   cls,
  len,
  offset = 0,
  encoding = None,
  stripNulls = False,
  value = '' 
)

◆ unpack()

def pkg.Struct.unpack (   self,
  data,
  pos = 0 
)

Member Data Documentation

◆ __attrs__

pkg.Struct.__attrs__
private

◆ __baked__

pkg.Struct.__baked__
private

◆ __defs__

pkg.Struct.__defs__
private

◆ __endian__

string pkg.Struct.__endian__ = '<'
staticprivate

◆ __frame__

pkg.Struct.__frame__
private

◆ __next__

pkg.Struct.__next__
private

◆ __sizes__

pkg.Struct.__sizes__
private

◆ __slots__

tuple pkg.Struct.__slots__ = ('__attrs__', '__baked__', '__defs__', '__endian__', '__next__', '__sizes__', '__values__')
staticprivate

◆ __values__

pkg.Struct.__values__
private

◆ BE

string pkg.Struct.BE = '>'
static

◆ float

pkg.Struct.float = StructType(('f', 4))
static

◆ int16

pkg.Struct.int16 = StructType(('h', 2))
static

◆ int32

pkg.Struct.int32 = StructType(('l', 4))
static

◆ int64

pkg.Struct.int64 = StructType(('q', 8))
static

◆ int8

pkg.Struct.int8 = StructType(('b', 1))
static

◆ LE

string pkg.Struct.LE = '<'
static

◆ string

pkg.Struct.string = classmethod(string)
static

◆ uint16

pkg.Struct.uint16 = StructType(('H', 2))
static

◆ uint32

pkg.Struct.uint32 = StructType(('L', 4))
static

◆ uint64

pkg.Struct.uint64 = StructType(('Q', 8))
static

◆ uint8

pkg.Struct.uint8 = StructType(('B', 1))
static

The documentation for this class was generated from the following file: