K i dZddlmZddlmZmZddZddZdddZdddZ dddZ ddd Z ddd Z ddd Z ddd Zddd ZddZddZddZddZy)z%Binary input/output support routines.) annotations)pack unpack_fromc |dS)Nr)cs Q/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/PIL/_binary.pyi8r s Q4Kc t|dzfS)N)bytesis r o8rs !c' r c"td||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 si16ber2rr c"td||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#Prr c"td||dS)N>Hrrrs r i16ber&Z tQ "1 %%r c"td||dS)N>Irrrs r i32ber*^r'r ctd|S)Nrrrs r o16ler-c a=r ctd|S)Nrr,rs r o32ler0gr.r ctd|S)Nr%r,rs r o16ber2kr.r ctd|S)Nr)r,rs r o32ber4or.r N)rrreturnint)rr6r5r)r)rrrr6r5r6)__doc__ __future__rstructrrr rrrrrr!r#r&r*r-r0r2r4rr r r:sV,"$ &&&&&&&& r