Home
last modified time | relevance | path

Searched refs:typeoffsetof (Results 1 – 3 of 3) sorted by relevance

/external/python/cffi/c/
Dtest_c.py897 return typeoffsetof(BType, fieldname)[1]
2835 py.test.raises(TypeError, typeoffsetof, BStructPtr, None)
2836 py.test.raises(TypeError, typeoffsetof, BStruct, None)
2837 assert typeoffsetof(BStructPtr, 'a1') == (BChar, 0)
2838 assert typeoffsetof(BStruct, 'a1') == (BChar, 0)
2839 assert typeoffsetof(BStructPtr, 'a2') == (BChar, 1)
2840 assert typeoffsetof(BStruct, 'a3') == (BChar, 2)
2841 assert typeoffsetof(BStructPtr, 'a2', 0) == (BChar, 1)
2842 assert typeoffsetof(BStruct, u+'a3') == (BChar, 2)
2843 py.test.raises(TypeError, typeoffsetof, BStructPtr, 'a2', 1)
[all …]
/external/python/cffi/cffi/
Dapi.py507 ctype, offset = self._backend.typeoffsetof(ctype, field_or_index)
509 ctype, offset1 = self._backend.typeoffsetof(ctype, field1, 1)
Dbackend_ctypes.py1054 def typeoffsetof(self, BType, fieldname, num=0): member in CTypesBackend