mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
21 lines
614 B
Python
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: ...
|