)Ejh dZddlmZddlmZmZddZdd Zddd Zddd Z dddZ dddZ dddZ dddZ dddZdddZddZddZddZddZdS)z%Binary input/output support routines.) annotations)pack unpack_fromcbytesreturnintc|dS)Nr)rs =C:\PYTHON\MyICR_Suite\python\Lib\site-packages\PIL/_binary.pyi8r s Q4Kic(t|dzfS)N)rrs r o8rs !c'  roc0td||dS)z Converts a 2-bytes (16 bits) string to an unsigned integer. :param c: string containing bytes to convert :param o: offset of bytes to convert in string hrrrs r si16ber3rrc0td||dS)z Converts a 4-bytes (32 bits) string to an unsigned integer. :param c: string containing bytes to convert :param o: offset of bytes to convert in string irrrs r si32ber%Qrrc0td||dS)N>Hrrrs r i16ber([ tQ " "1 %%rc0td||dS)N>Irrrs r i32ber,_r)rc"td|S)Nrrrs r o16ler/d a==rc"td|S)Nr r.rs r o32ler2hr0rc"td|S)Nr'r.rs r o16ber4lr0rc"td|S)Nr+r.rs r o32ber6pr0rN)rrrr )rr rr)r)rrrr rr )__doc__ __future__rstructrrr rrrrr!r#r%r(r,r/r2r4r6r rr r:s,+""""""$$$$$$$$ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& r