def METHOD_NAME(self, offset: int, size: int) -> int:        
    buf = ctypes.create_string_buffer(size)
    ctypes.memmove(buf, ctypes.addressof(self.instance) + offset, size)
    return int.from_bytes(buf.raw, byteorder='little')