Files
typeshed/stdlib/chunk.pyi
2023-01-18 09:37:34 +01:00

21 lines
614 B
Python

from typing import IO
class Chunk:
closed: bool
align: bool
file: IO[bytes]
chunkname: bytes
chunksize: int
size_read: int
offset: int
seekable: bool
def __init__(self, file: IO[bytes], align: bool = True, bigendian: bool = True, inclheader: bool = False) -> None: ...
def getname(self) -> bytes: ...
def getsize(self) -> int: ...
def close(self) -> None: ...
def isatty(self) -> bool: ...
def seek(self, pos: int, whence: int = 0) -> None: ...
def tell(self) -> int: ...
def read(self, size: int = -1) -> bytes: ...
def skip(self) -> None: ...