예제 #1
0
파일: ee.py 프로젝트: afrolov/llvm-py
 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)
예제 #2
0
파일: ee.py 프로젝트: BackupGGCode/llvm-py
 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)
예제 #3
0
파일: ee.py 프로젝트: afrolov/llvm-py
 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)
예제 #4
0
파일: ee.py 프로젝트: BackupGGCode/llvm-py
 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)