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

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

        $this->setOpen(false);
    }
public function close ( ) { if ( $ this -> isOpen ( ) === false ) { $ msg = "Cannot call close() a closed stream." ; throw new MemoryStreamException ( $ msg , $ this , MemoryStreamException :: NOT_OPEN ) ; } $ this -> setOpen ( false ) ; }
Close the binary stream.

@throws \qtism\common\storage\MemoryStreamException If the stream is closed prior the call.
Close the binary stream .