HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/ctypes/test/test_stringptr.pyo
�
P��ac@sgddlZddlTddlZeej�Zdejfd��YZedkrcej	�ndS(i����N(t*tStringPtrTestCasecBs#eZd�Zd�Zd�ZRS(cCs�dtfd��Y}|�}|jtt|jd�td�}ddlm}|j||�d�||_|j||�d�x5t	t
|��D]!}|j|||j|�q�W|jtt|d	d�dS(
NtXcBseZdee�fgZRS(tstr(t__name__t
__module__tPOINTERtc_chart_fields_(((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyRstcontentssHello, Worldi����(tgetrefcountiiR(
t	StructuretassertRaisest
ValueErrortgetattrRtc_buffertsysR
tassertEqualtrangetlent	TypeErrortsetattr(tselfRtxtbtgrcti((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyttest__POINTER_c_char
s		cCswdtfd��Y}|�}|j|jd�d|_|j|jd�td�}|jtt|d|�dS(NRcBseZdefgZRS(R(RRtc_char_pR(((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyRssHello, WorldR(RRRtNoneRRRR(RRRR((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyttest__c_char_ps		cCs?tj}t|_ttf|_|j|dd�d�|j|td�d�d�tt�tf|_td�}|j||d�d�|j|dd�d�tt�|_td�}||d�}|d|d|d|d|df}|j|d
�~|d|d|d|d|df}dS(Ntabcdeftctcdefiiiiitdtetfs(R R"R#R$s(	tlibt	my_strchrRtrestypeRtargtypesRRR(RtstrchrtbuftrRtx1((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyttest_functions,s 		)(RRRRR-(((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyRs		t__main__(
tunittesttctypest_ctypes_testtCDLLt__file__R%tTestCaseRRtmain(((s6/usr/local/lib/python2.7/ctypes/test/test_stringptr.pyt<module>s
B