:py:mod:`dissect.target.containers.ewf` ======================================= .. py:module:: dissect.target.containers.ewf Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.containers.ewf.EwfContainer .. py:class:: EwfContainer(fh: Union[list, BinaryIO, pathlib.Path], *args, **kwargs) Bases: :py:obj:`dissect.target.container.Container` Expert Witness Disk Image Format .. py:attribute:: __type__ :value: 'ewf' .. py:method:: detect_path(path: pathlib.Path, original: Union[list, BinaryIO]) -> bool :staticmethod: Detect path .. py:method:: read(length: int) -> bytes Read a ``length`` of bytes from this ``Container``. .. py:method:: seek(offset: int, whence: int = io.SEEK_SET) -> int Change the stream position to ``offset``. ``whence`` determines where to seek from: * ``io.SEEK_SET`` (``0``):: absolute offset in the stream. * ``io.SEEK_CUR`` (``1``):: current position in the stream. * ``io.SEEK_END`` (``2``):: end of stream. :param offset: The offset relative to the position indicated by ``whence``. :param whence: Where to start the seek from. .. py:method:: tell() -> int Returns the current seek position of the ``Container``. .. py:method:: close() -> None Close the container. Override this if you need to clean-up anything.