a (` @sddlZddlmZddlmZiZzddlmZeeWneyNYn0e dded<ded <ej j D]Z e d rpe ee <qp[ iZd d Zd dZejdkreedS)N)model)FFIError)_get_common_typesFILEZ_IO_FILEZ_BoolboolZ_tcCsz t|WStyt||}t|ts:|d}}nZ|tjjvrXt|d}}n<|dkrpt d|fn$||krt d|f| |\}}t|tj sJ||ft|<||fYS0dS)Nrset-unicode-neededzFThe Windows type %r is only available after you call ffi.set_unicode()zUnsupported type: %r. Please look at http://cffi.readthedocs.io/en/latest/cdef.html#ffi-cdef-limitations and file an issue if you think this type should really be supported.) _CACHEKeyError COMMON_TYPESget isinstancestrr PrimitiveTypeALL_PRIMITIVE_TYPESrZparse_type_and_qualsZBaseTypeByIdentity)parserZ commontypeZcdeclresultZqualsr6/usr/lib64/python3.9/site-packages/cffi/commontypes.pyresolve_common_types,       rc CsNtdgdtdtdttdggdddddddddddd S) NZ_UNICODE_STRING)ZLengthZ MaximumLengthZBufferzunsigned shortZwchar_t)rrzUNICODE_STRING *zconst UNICODE_STRING *r) ZUNICODE_STRINGZPUNICODE_STRINGZPCUNICODE_STRINGZTBYTEZTCHARZLPCTSTRZPCTSTRZLPTSTRZPTSTRZPTBYTEZPTCHAR)rZ StructTyperZ PointerTyperrrrwin_common_types7s( rwin32)sysrerrorrr Z _cffi_backendr ImportErrorZ unknown_typerrZ_typeendswithr rrplatformupdaterrrrs&