miasm
Reverse engineering framework
miasm.loader.new_cstruct.CStruct Class Reference

Inherits with_metaclass, miasm.loader.new_cstruct.Cstruct_Metaclass, and object.

Inherited by miasm.loader.minidump.Context_AMD64, miasm.loader.minidump.Context_x86, miasm.loader.minidump.FixedFileInfo, miasm.loader.minidump.FloatingSaveArea, miasm.loader.minidump.LocationDescriptor, miasm.loader.minidump.M128A, miasm.loader.minidump.Memory64List, miasm.loader.minidump.MemoryDescriptor, miasm.loader.minidump.MemoryDescriptor64, miasm.loader.minidump.MemoryInfo, miasm.loader.minidump.MemoryInfoList, miasm.loader.minidump.MemoryList, miasm.loader.minidump.MinidumpHDR, miasm.loader.minidump.MinidumpString, miasm.loader.minidump.Module, miasm.loader.minidump.ModuleList, miasm.loader.minidump.Rva, miasm.loader.minidump.StreamDirectory, miasm.loader.minidump.SystemInfo, miasm.loader.minidump.Thread, miasm.loader.minidump.ThreadList, miasm.loader.pe.Coffhdr, miasm.loader.pe.Delaydesc_e, miasm.loader.pe.DescName, miasm.loader.pe.DirDelay, miasm.loader.pe.DirExport, miasm.loader.pe.DirImport, miasm.loader.pe.DirReloc, miasm.loader.pe.DirRes, miasm.loader.pe.DirTls, miasm.loader.pe.Doshdr, miasm.loader.pe.ExpDesc_e, miasm.loader.pe.ImpDesc_e, miasm.loader.pe.ImportByName, miasm.loader.pe.NThdr, miasm.loader.pe.NTsig, miasm.loader.pe.Optehdr, miasm.loader.pe.Opthdr32, miasm.loader.pe.Opthdr64, miasm.loader.pe.Ordinal, miasm.loader.pe.Rel, miasm.loader.pe.Reloc, miasm.loader.pe.ResDataEntry, miasm.loader.pe.ResDesc_e, miasm.loader.pe.ResEntry, miasm.loader.pe.Rva, miasm.loader.pe.Rva32, miasm.loader.pe.Shdr, miasm.loader.pe.SHList, miasm.loader.pe.SUnicode, and miasm.loader.pe.Symb.

Collaboration diagram for miasm.loader.new_cstruct.CStruct:

Public Member Functions

def __init__ (self, parent_head=None, _sex=None, _wsize=None, **kargs)
 
def pack (self)
 
def __bytes__ (self)
 
def __str__ (self)
 
def __len__ (self)
 
def __repr__ (self)
 
def __getitem__ (self, item)
 
- Public Member Functions inherited from miasm.loader.new_cstruct.Cstruct_Metaclass
def __new__ (cls, name, bases, dct)
 
def unpack_l (cls, s, off=0, parent_head=None, _sex=None, _wsize=None)
 
def unpack (cls, s, off=0, parent_head=None, _sex=None, _wsize=None)
 

Public Attributes

 parent_head
 
 sex
 

Additional Inherited Members

- Static Public Attributes inherited from miasm.loader.new_cstruct.Cstruct_Metaclass
string field_suffix = "_value"
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.loader.new_cstruct.CStruct.__init__ (   self,
  parent_head = None,
  _sex = None,
  _wsize = None,
**  kargs 
)

Member Function Documentation

◆ __bytes__()

def miasm.loader.new_cstruct.CStruct.__bytes__ (   self)

Reimplemented in miasm.loader.pe.DirReloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ __getitem__()

def miasm.loader.new_cstruct.CStruct.__getitem__ (   self,
  item 
)

Reimplemented in miasm.loader.pe.SHList.

◆ __len__()

def miasm.loader.new_cstruct.CStruct.__len__ (   self)

◆ __repr__()

◆ __str__()

def miasm.loader.new_cstruct.CStruct.__str__ (   self)

Reimplemented in miasm.loader.pe.DirReloc.

Here is the call graph for this function:

◆ pack()

def miasm.loader.new_cstruct.CStruct.pack (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ parent_head

miasm.loader.new_cstruct.CStruct.parent_head

◆ sex

miasm.loader.new_cstruct.CStruct.sex

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