7 lines
196 B
Python
7 lines
196 B
Python
def dword(buffer, idx: int) -> int:
|
|
return int.from_bytes(buffer[idx : idx + 4], "little")
|
|
|
|
|
|
def bytes_sub(buffer, start: int, length: int) -> bytes:
|
|
return buffer[start : start + length]
|