403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/ctypes/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyc
�
�q2_c@s�ddlZddlZddlZddlZddlZddlmZddlTd�Zdejfd��YZ	e
dkr�ej�ndS(i����N(thexlify(t*cCstt|��j�S(N(Rt
memoryviewtupper(ts((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pytbinstTestcBs�eZejd�d��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�ZRS(
s
test disabledcCsRtjtjIJx;td�D]-}t�}t|d|d�t|�qWdS(Ni si%si(tsyststderrt	byteordertrangetBITStsetattrtdump(tselftitbits((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_Xs
	cCs�tjdkr;|jtjt�|jtjjt�n)|jtjt�|jtjjt�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�dS(Ntlittlei4s>ht1234s<ht3412(RR	tassertIstc_shortt__ctype_le__t__ctype_be__tassertEqualRtstructtpacktvaluetc_ushort(RR((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_shorts*""""cCs�tjdkr;|jtjt�|jtjjt�n)|jtjt�|jtjjt�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�dS(	NRixV4s>it12345678s<it78563412s>Is<I(RR	Rtc_intRRRRRRRtc_uint(RR((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_int4s*""""cCs�tjdkr;|jtjt�|jtjjt�n)|jtjt�|jtjjt�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�tjd�}|jttj	dd��d�|jt|�d�|j|j
d�dS(	NRI�ͫ�xV4s>qt1234567890ABCDEFs<qtEFCDAB9078563412s>Qs<Q(RR	Rt
c_longlongRRRRRRRtc_ulonglong(RR((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_longlongPs*""""cCsgtjdkr;|jtjt�|jtjjt�n)|jtjt�|jtjjt�ttj�}|jt	t
jdtj��t	|��|j|j
tjd�tjtj�}|j|j
tjd�|jt	t
jdtj��t	|��tjtj�}|j|j
tjd�|jt	t
jdtj��t	|��dS(NRtfis<fs>f(RR	Rtc_floatRRtmathtpiRRRRtassertAlmostEqualR(RR((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_floatls++cCs^tjdkr;|jtjt�|jtjjt�n)|jtjt�|jtjjt�ttj�}|j|j	tj�|jt
tjdtj��t
|��tjtj�}|j|j	tj�|jt
tjdtj��t
|��tjtj�}|j|j	tj�|jt
tjdtj��t
|��dS(NRtds<ds>d(
RR	Rtc_doubleRRR+R,RRRRR(RR((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_double~s++cCsv|jtjt�|jtjt�|jtjt�|jtjt�|jtjt�|jtjt�dS(N(Rtc_byteRRtc_ubytetc_char(R((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_endian_other�scCs`tjdkrt}nt}d|fd��Y}dtfdtfdtfdtfdtfd	t	fd
t
fdtfdtfd
t
fdtfdtfdtfdtdfdtdfdtdfdtdddfg}||_xhtttt�fD]Q}|jd|f�d|fd��Y}|jtt|dd|fg�qWdS(NRtTcBseZRS((t__name__t
__module__(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyR6�statbtcR/teR)tgthRtktltmtntb1itb2tb3itxcBseZRS((R7R8(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyR6�st_fields_(RR	tBigEndianStructuretLittleEndianStructureR3R2RRR!R"tc_longtc_ulongR&R'R*R0R4RGtc_wchartc_void_ptPOINTERtappendtassertRaisest	TypeErrorR(RtbaseR6RGttyp((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_struct_fields_1�s4															cs�x�tdftdffD]�\}}x�tttfD]�}d|fd��Y�d|f�fd��Y}|jt|�t|��t|�}t||�d}tj	|=|j|j
jd�|j|j
jd	�q5WqWdS(
NsstNestedStructurecBs eZdefdefgZRS(RFty(R7R8tc_uint32RG(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRU�s	t
TestStructurecseZd�fgZRS(tpoint(R7R8RG((RU(s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRX�siii(
RHRIt	StructureRtlentsizeofRNtcasttctypest_pointer_type_cacheRYRFRV(RtnestedtdatatparentRXtptrR((RUs>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_struct_struct�s	

cCs�tjdkrt}d}nt}d}d|fd��Y}|dddd	�}tj|dddd	�}|jt|�t|��dS(
NRs>bxhids<bxhidtScBs2eZdefdefdefdefgZRS(R:R>RR/(R7R8R2RR!R0RG(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRe�s			ii4ixV4g��Q�	@(RR	RHRIRRRR(RRRtfmtRets1ts2((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyttest_struct_fields_2�s	cCs�tjdkrt}d}nt}d}d|fd��Y}|�}d|_d|_d|_d	|_tj	|dddd	�}|j
t|�t|��dS(
NRs
>b h xi xds
<b h xi xdRecBsJeZdZdefdefdefdefdefdefgZRS(iR:R>t_1Rt_2R/(R7R8t_pack_R2RR!R0RG(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRe�s					ii4ixV4g��Q�	@(RR	RHRIR:R>RR/RRRR(RRRRfReRgRh((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyt&test_unaligned_nonnative_struct_fields�s						cCs�tjdkrd}nt}d}dtfd��Y}|�}d|_d|_d|_d	|_tj	|dddd	�}|j
t|�t|��dS(
NRs
<b h xi xds
>b h xi xdRecBsJeZdZdefdefdefdefdefdefgZRS(iR:R>RjRRkR/(R7R8RlR2RR!R0RG(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRes					ii4ixV4g��Q�	@(RR	RIRZR:R>RR/RRRR(RRfRRReRgRh((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyt#test_unaligned_native_struct_fieldss						(R7R8tunittesttskipRRR#R(R.R1R5RTRdRiRmRn(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyRs						
	#			t__main__(RRoRR+R^tbinasciiRRtTestCaseRR7tmain(((s>/opt/alt/python27/lib64/python2.7/ctypes/test/test_byteswap.pyt<module>s<
	
�

Youez - 2016 - github.com/yon3zu
LinuXploit