Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)