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

Ë
ß¼ãóTddlmZddlZddlmZddlmZmZmZGddee«Z y)é)Ú annotationsN)ÚIterable)ÚIOÚAnyStrÚNoReturncóÐeZdZdZddZddZddZejfddZ ddZ
ddZ dddZ ddd „Z
ddd
Zdd Zdd Zdd
Zd d!dZd"dZd#dZd"dZd$dZddZd%dZd%dZy)&Ú 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ðŒØˆŒØˆŒ ؈Œ Ø  ó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Ø—xx (ˆD
QŠYØ—{‘{ VÑ+ˆDˆDŒHäqœ#˜dŸh™h¨¯ © ÓŒØ  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)
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ÜAt—{‘{ T§X¡XÑ.‰Aà ˜dŸh™hÑ&ˆAØ Š6Ø §¡§¡Ñ- 5°2Ð —8‘8˜aŒØw‰w|‰|˜AÐrcóØd|jjvrdnd}d|jjvrdnd} |jd«}|s |S||z}||k(st|«|k(r |SŒ2)
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-Únewline_characterÚcs rÚreadlinezContainerIO.readlineesyð $§'¡'§,¡,Ñ.C°BˆØ%(¨D¯G©G¯L©LÑ%8™E¸dÐØØ— ‘ ˜!“ ˆAÙØðˆðA‘ˆAØÐ¨Q«°1ªØØˆðrcóxg} |j«}|s |S|j|«t|«|k(r |SŒ8)
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ðˆØØ