miasm
Reverse engineering framework
miasm.core.bin_stream.bin_stream Class Reference
Inheritance diagram for miasm.core.bin_stream.bin_stream:
Collaboration diagram for miasm.core.bin_stream.bin_stream:

Public Member Functions

def __init__ (self, *args, **kargs)
 
def __repr__ (self)
 
def __str__ (self)
 
def hexdump (self, offset, l)
 
def enter_atomic_mode (self)
 
def leave_atomic_mode (self)
 
def getbytes (self, start, l=1)
 
def getbits (self, start, n)
 
def get_u8 (self, addr, endianness=None)
 
def get_u16 (self, addr, endianness=None)
 
def get_u32 (self, addr, endianness=None)
 
def get_u64 (self, addr, endianness=None)
 

Public Attributes

 endianness
 

Static Public Attributes

int CACHE_SIZE = 10000
 

Constructor & Destructor Documentation

◆ __init__()

def miasm.core.bin_stream.bin_stream.__init__ (   self,
args,
**  kargs 
)

Member Function Documentation

◆ __repr__()

def miasm.core.bin_stream.bin_stream.__repr__ (   self)

◆ __str__()

def miasm.core.bin_stream.bin_stream.__str__ (   self)

Reimplemented in miasm.core.bin_stream_ida.bin_stream_ida.

Here is the call graph for this function:

◆ enter_atomic_mode()

def miasm.core.bin_stream.bin_stream.enter_atomic_mode (   self)
Enter atomic mode. In this mode, read may be cached

◆ get_u16()

def miasm.core.bin_stream.bin_stream.get_u16 (   self,
  addr,
  endianness = None 
)
Return u16 from address @addr
endianness: Optional: LITTLE_ENDIAN/BIG_ENDIAN
Here is the call graph for this function:

◆ get_u32()

def miasm.core.bin_stream.bin_stream.get_u32 (   self,
  addr,
  endianness = None 
)
Return u32 from address @addr
endianness: Optional: LITTLE_ENDIAN/BIG_ENDIAN
Here is the call graph for this function:

◆ get_u64()

def miasm.core.bin_stream.bin_stream.get_u64 (   self,
  addr,
  endianness = None 
)
Return u64 from address @addr
endianness: Optional: LITTLE_ENDIAN/BIG_ENDIAN
Here is the call graph for this function:

◆ get_u8()

def miasm.core.bin_stream.bin_stream.get_u8 (   self,
  addr,
  endianness = None 
)
Return u8 from address @addr
endianness: Optional: LITTLE_ENDIAN/BIG_ENDIAN
Here is the call graph for this function:

◆ getbits()

def miasm.core.bin_stream.bin_stream.getbits (   self,
  start,
  n 
)
Return the bits from the bit stream
@start: the offset in bits
@n: number of bits to read
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbytes()

def miasm.core.bin_stream.bin_stream.getbytes (   self,
  start,
  l = 1 
)
Return the bytes from the bit stream
@start: starting offset (in byte)
@l: (optional) number of bytes to read

Wrapper on _getbytes, with atomic mode handling.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hexdump()

def miasm.core.bin_stream.bin_stream.hexdump (   self,
  offset,
  l 
)

◆ leave_atomic_mode()

def miasm.core.bin_stream.bin_stream.leave_atomic_mode (   self)
Leave atomic mode

Member Data Documentation

◆ CACHE_SIZE

int miasm.core.bin_stream.bin_stream.CACHE_SIZE = 10000
static

◆ endianness

miasm.core.bin_stream.bin_stream.endianness

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