• File: chunk.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/__pycache__/chunk.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.71 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~d;@sGdddZdS)c@sZeZdZdddZddZddZd	d
ZddZdddZddZ	dddZ
ddZdS)ChunkTFc	Csddl}d|_||_|rd}nd}||_|d|_t|jdkrFty ||d|dd|_	Wn|j
k
rtdYnX|r|j	d|_	d|_y|j|_
Wnttfk
rd|_YnXd|_dS)	NF><LT)structclosedalignfileread	chunknamelenEOFErrorunpack_from	chunksizeerror	size_readtelloffsetAttributeErrorOSErrorseekable)selfrr
Z	bigendianZ
inclheaderrZstrflagr*/opt/alt/python37/lib64/python3.7/chunk.py__init__4s, zChunk.__init__cCs|jS)N)r
)rrrrgetnameNsz
Chunk.getnamecCs|jS)N)r)rrrrgetsizeRsz
Chunk.getsizecCs |jsz|Wdd|_XdS)NT)r	skip)rrrrcloseVszChunk.closecCs|jrtddS)NzI/O operation on closed fileF)r	
ValueError)rrrrisatty]szChunk.isattyrcCsv|jrtd|jstd|dkr0||j}n|dkrB||j}|dksT||jkrXt|j|j	|d||_dS)NzI/O operation on closed filezcannot seekr)
r	r!rrrrRuntimeErrorrseekr)rposwhencerrrr&bs
z
Chunk.seekcCs|jrtd|jS)NzI/O operation on closed file)r	r!r)rrrrrusz
Chunk.tellcCs|jrtd|j|jkrdS|dkr2|j|j}||j|jkrN|j|j}|j|}|jt||_|j|jkr|jr|jd@r|jd}|jt||_|S)NzI/O operation on closed filerr#)r	r!rrrrrr
)rsizedatadummyrrrrzs 
z
Chunk.readcCs|jrtd|jrlyB|j|j}|jr:|jd@r:|d}|j|d|j||_dStk
rjYnXx4|j|jkrt	d|j|j}|
|}|sntqnWdS)NzI/O operation on closed filer#i )r	r!rrrr
rr&rminrr)rnr-rrrrs"
z
Chunk.skipN)TTF)r)r))__name__
__module____qualname__rrrr r"r&rrrrrrrr3s


rN)rrrrr<module>3r*