Skip to content

sector

Classes:

SectorReadHelper

SectorReadHelper(ifo: bytes | SPathLike | BufferedReader)

Attributes:

Source code
19
20
21
22
23
24
25
26
27
def __init__(self, ifo: bytes | SPathLike | BufferedReader) -> None:
    if isinstance(ifo, bytes):
        ifo = BufferedReader(BytesIO(ifo))  # type: ignore

    if not isinstance(ifo, BufferedReader):
        self.file = SPath(ifo)
        ifo = self.file.open('rb')

    self.ifo = ifo

file class-attribute instance-attribute

file: SPath | None = None

ifo instance-attribute

ifo = ifo