ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/encodings/__pycache__/utf_16.cpython-38.opt-1.pyc
U

e5dt@sxdZddlZddlZejZdddZGdddejZGdd	d	ejZGd
ddej	Z	Gdd
d
ej
Z
ddZdS)z Python 'utf-16' Codec


Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

NstrictcCst||dS)NT)codecs
utf_16_decode)inputerrorsr(/usr/lib64/python3.8/encodings/utf_16.pydecodesr	c@s8eZdZdddZdddZddZd	d
ZddZd
S)IncrementalEncoderrcCstj||d|_dSN)rr
__init__encoderselfrrrrrszIncrementalEncoder.__init__FcCsN|jdkr<t||jd}tjdkr0tj|_ntj|_|S|||jdS)Nrlittle)r
r
utf_16_encodersys	byteorderutf_16_le_encodeutf_16_be_encode)rrfinalresultrrrencodes


zIncrementalEncoder.encodecCstj|d|_dSr)rr
resetr
rrrrr!szIncrementalEncoder.resetcCs|jdkrdSdS)Nr)r
rrrrgetstate%szIncrementalEncoder.getstatecCs,|rd|_ntjdkr tj|_ntj|_dSNr)r
rrrrrrstaterrrsetstate,s


zIncrementalEncoder.setstateN)r)F)__name__
__module____qualname__rrrrr rrrrr
s



r
c@s6eZdZd
ddZddZddZdd	Zd
dZdS)IncrementalDecoderrcCstj||d|_dSr)rBufferedIncrementalDecoderrdecoderrrrrr6szIncrementalDecoder.__init__cCsl|jdkr\t||d|\}}}|dkr2tj|_n"|dkrDtj|_n|dkrTtd||fS|||j|S)Nrr%UTF-16 stream does not start with BOM)r&rutf_16_ex_decodeutf_16_le_decodeutf_16_be_decodeUnicodeErrorr)rrrroutputconsumedrrrr_buffer_decode:s


z!IncrementalDecoder._buffer_decodecCstj|d|_dSr)rr%rr&rrrrrGszIncrementalDecoder.resetcCsDtj|d}|jdkr"|dfSttjdk|jtjkk}||fS)Nrrbig)rr%rr&intrrr,)rrZaddstaterrrrKs


zIncrementalDecoder.getstatecCsdtj|||d}|dkr8tjdkr.tjntj|_n(|dkrZtjdkrPtjntj|_nd|_dS)Nr(rr1)rr%r rrr,r+r&rrrrr YszIncrementalDecoder.setstateN)r)r!r"r#rr0rrr rrrrr$5s


r$c@s(eZdZd	ddZddZd
ddZdS)StreamWriterrcCstj|||d|_dSr)rr3rr
)rstreamrrrrriszStreamWriter.__init__cCstj|d|_dSr)rr3rr
rrrrrmszStreamWriter.resetcCsF|jdkr6t||}tjdkr*tj|_ntj|_|S|||SdSr)r
rrrrrr)rrrrrrrrqs


zStreamWriter.encodeN)r)r)r!r"r#rrrrrrrr3hs
r3c@seZdZddZdddZdS)StreamReadercCs.tj|z|`Wntk
r(YnXdSr)rr5rr	AttributeErrorrrrrr~s
zStreamReader.resetrcCsRt||dd\}}}|dkr(tj|_n"|dkr:tj|_n|dkrJtd||fS)NrFr'r(rr))rr*r+r	r,r-)rrrobjectr/rrrrr	s

zStreamReader.decodeN)r)r!r"r#rr	rrrrr5|sr5c	CstjdttttttdS)Nzutf-16)namerr	incrementalencoderincrementaldecoderstreamreaderstreamwriter)r	CodecInforr	r
r$r5r3rrrrgetregentrysr>)r)__doc__rrrrr	r
r%r$r3r5r>rrrr<module>s
#3