Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)