Files
intellecton/venv/lib/python3.12/site-packages/PIL/__pycache__/ContainerIO.cpython-312.pyc
T

56 lines
6.8 KiB
Plaintext
Raw Normal View History

Ë
ß¼jüãóT—ddlmZddlZddlmZddlmZmZmZGd„dee«Z y)é)Ú annotationsN)ÚIterable)ÚIOÚAnyStrÚNoReturncóЗeZdZdZdd„Zdd„Zdd„Zejfdd„Z dd„Z
dd„Z ddd„Z ddd „Z
ddd
„Zdd „Zdd „Zdd
„Zd d!d„Zd"d„Zd#d„Zd"d„Zd$d„Zdd„Zd%d„Zd%d„Zy)&Ú ContainerIOzm
A file object that provides read access to a part of an existing
file (for example a TAR file).
cór—||_d|_||_||_|jj |«y)z­
Create file object.
:param file: Existing file.
:param offset: Start of region, in bytes.
:param length: Size of region, in bytes.
rN)ÚfhÚposÚoffsetÚlengthÚseek)ÚselfÚfiler
rs úR/home/antigravity/intellecton/venv/lib/python3.12/site-packages/PIL/ContainerIO.pyÚ__init__zContainerIO.__init__s0€ð#ˆŒØˆŒØˆŒ ؈Œ Ø �‰� ‰ �VÕócó—y©NF©©rs rÚisattyzContainerIO.isatty.ó€Ørcó—y©NTrrs rÚseekablezContainerIO.seekable1ó€ØrcóR—|dk(r|j|z|_n!|dk(r|j|z|_n||_tdt|j|j««|_|jj |j |jz«|jS)aK
Move file pointer.
:param offset: Offset in bytes.
:param mode: Starting position. Use 0 for beginning of region, 1
for current offset, and 2 for end of region. You cannot move
the pointer outside the defined region.
:returns: Offset from start of region, in bytes.
éér)r rÚmaxÚminr rr
)rr
Úmodes rrzContainerIO.seek4s|€ð �1Š9Ø—x‘x &Ñ(ˆD�HØ
�QŠYØ—{‘{ VÑ+ˆD�HàˆDŒHä�qœ#˜dŸh™h¨¯ © Ó4Ó5ˆŒØ �‰� ‰ �T—[‘[ 4§8¡8Ñ+Ô,Ø�x‰xˆrcó—|jS)ze
Get current file pointer.
:returns: Offset from start of region, in bytes.
)r rs rÚtellzContainerIO.tellIs
€ð �x‰xˆrcó—yrrrs rÚreadablezContainerIO.readableQrrcó&—|dkDr$t||j|jz
«}n|j|jz
}|dkrd|jjvrdSdS|j|z|_|jj |«S)z¯
Read data.
:param n: Number of bytes to read. If omitted, zero or negative,
read until end of region.
:returns: An 8-bit string.
rÚbrÚ)r#rr r r$Úread)rÚns rr,zContainerIO.readTsx€ð
ˆqŠ5Ü�A�t—{‘{ T§X¡XÑ-Ó.‰Aà— ‘ ˜dŸh™hÑ&ˆAØ �Š6Ø §¡§¡Ñ-�3Ð 5°2Ð 5Ø—8‘8˜a‘<ˆŒØ�w‰w�|‰|˜A‹ÐrcóØ—d|jjvrdnd}d|jjvrdnd} |jd«}|s |S||z}||k(st|«|k(r |SŒ2)z·
Read a line of text.
:param n: Number of bytes to read. If omitted, zero or negative,
read until end of line.
:returns: An 8-bit string.
r*rr+ó
ú
r )r r$r,Úlen)rr-ÚsÚnewline_characterÚcs rÚreadlinezContainerIO.readlineesy€ð $§'¡'§,¡,Ñ.‘C°BˆØ%(¨D¯G©G¯L©LÑ%8™E¸dÐØØ— ‘ ˜!“ ˆAÙØðˆð�A‘ˆAØÐ%Ò%¬¨Q«°1ªØØˆðrcóx—g} |j«}|s |S|j|«t|«|k(r |SŒ8)zÏ
Read multiple lines of text.
:param n: Number of lines to read. If omitted, zero, negative or None,
read until end of region.
:returns: A list of 8-bit strings.
)r5Úappendr1)rr-Úlinesr2s rÚ readlineszContainerIO.readlinesxsI€ðˆØØ—
‘