|
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) |
|
◆ __init__()
def miasm.core.bin_stream.bin_stream.__init__ |
( |
|
self, |
|
|
* |
args, |
|
|
** |
kargs |
|
) |
| |
◆ __repr__()
def miasm.core.bin_stream.bin_stream.__repr__ |
( |
|
self | ) |
|
◆ __str__()
def miasm.core.bin_stream.bin_stream.__str__ |
( |
|
self | ) |
|
◆ 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
◆ 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
◆ 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
◆ 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
◆ 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
◆ 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.
◆ 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 | ) |
|
◆ 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:
- /home/serpilliere/projet/test_doc_miasm/miasm/miasm/core/bin_stream.py