Buckets:
| """Data-type definitions for EGL/GLES""" | |
| import ctypes | |
| pointer = ctypes.pointer | |
| class _Opaque( ctypes.Structure ): | |
| """An Opaque Structure reference (base class)""" | |
| class _opaque_pointer( ctypes.POINTER( _Opaque ) ): | |
| _type_ = _Opaque | |
| def from_param( cls, value ): | |
| return ctypes.cast( value, cls ) | |
| def address( self ): | |
| return ctypes.addressof( self.contents ) | |
| def as_voidp( self ): | |
| return ctypes.c_voidp( self.address ) | |
| def __hash__(self): | |
| """Allow these pointers to be used as keys in dictionaries""" | |
| return self.address | |
| def opaque_pointer_cls( name ): | |
| """Create an Opaque pointer class for the given name""" | |
| typ = type( name, (_Opaque,), {} ) | |
| p_typ = type( name+'_pointer', (_opaque_pointer,), {'_type_':typ}) | |
| return p_typ | |
Xet Storage Details
- Size:
- 850 Bytes
- Xet hash:
- 050e984c01bd17281c2bd6b65af45f800b9316a1511646b70a4271bc4248be64
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.