httk.core.datastream.bytestream_common ====================================== .. py:module:: httk.core.datastream.bytestream_common Classes ------- .. autoapisummary:: httk.core.datastream.bytestream_common.BytestreamCommon Module Contents --------------- .. py:class:: BytestreamCommon Bases: :py:obj:`abc.ABC` Common superclass for many of the implementations of backends for streaming byte data. .. py:method:: unwrap() Return the currently opened underlying stream. :return: The stream used for reading and writing data. .. py:method:: read(size = -1) Read up to ``size`` bytes, or all remaining bytes when ``size`` is negative. :param size: Maximum number of bytes to read. :return: The bytes read from the stream. .. py:method:: close() Close the opened stream and any source stream owned by it. .. py:method:: seek(offset, whence = os.SEEK_SET) Move the stream position. :param offset: Position adjustment interpreted according to ``whence``. :param whence: Reference point for ``offset``. :return: The resulting absolute stream position. .. py:method:: tell() Return the current stream position. :return: The absolute stream position.