def read()

in src/azstoragetorch/io.py [0:0]


    def read(self, size: Optional[int] = -1, /) -> bytes:
        """Read bytes from the blob.

        :param size: The maximum number of bytes to read. If not specified, all bytes will be read.

        :return: The bytes read from the blob.
        """
        if size is not None:
            self._validate_is_integer("size", size)
            self._validate_min("size", size, -1)
        self._validate_readable()
        self._validate_not_closed()
        self._invalidate_readline_buffer()
        return self._read(size)