public function rewind()
    {
        if ($this->isOpen() === false) {
            $msg = "Cannot call rewind() on a closed MemoryStream.";
            throw new MemoryStreamException($msg, $this, MemoryStreamException::NOT_OPEN);
        }

        $this->setPosition(0);
    }
public function rewind()
    {
        if ($this->isOpen() === false) {
            $msg = "Cannot call rewind() on a closed MemoryStream.";
            throw new MemoryStreamException($msg, $this, MemoryStreamException::NOT_OPEN);
        }

        $this->setPosition(0);
    }
public function rewind ( ) { if ( $ this -> isOpen ( ) === false ) { $ msg = "Cannot call rewind() on a closed MemoryStream." ; throw new MemoryStreamException ( $ msg , $ this , MemoryStreamException :: NOT_OPEN ) ; } $ this -> setPosition ( 0 ) ; }
Rewind the stream to its initial position.

@throws \qtism\common\storage\MemoryStreamException If the binary stream is not open.
Rewind the stream to its initial position .