Searched refs:typeoffsetof (Results 1 – 3 of 3) sorted by relevance
/external/python/cffi/c/ |
D | test_c.py | 897 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/ |
D | api.py | 507 ctype, offset = self._backend.typeoffsetof(ctype, field_or_index) 509 ctype, offset1 = self._backend.typeoffsetof(ctype, field1, 1)
|
D | backend_ctypes.py | 1054 def typeoffsetof(self, BType, fieldname, num=0): member in CTypesBackend
|