def offset_of_element(self, ty, el): core.check_is_type_struct(ty) el = int(el) # el should be an int return _core.LLVMOffsetOfElement(self.ptr, ty.ptr, el)
def element_at_offset(self, ty, ofs): core.check_is_type_struct(ty) ofs = int(ofs) # ofs is unsigned long long return _core.LLVMElementAtOffset(self.ptr, ty.ptr, ofs)
def element_at_offset(self, ty, ofs): core.check_is_type_struct(ty) ofs = long(ofs) # ofs is unsigned long long return _core.LLVMElementAtOffset(self.ptr, ty.ptr, ofs)