public function open()
    {
        if ($this->isOpen() === true) {
            $msg = "The MemoryStream is already open.";
            throw new MemoryStreamException($msg, $this, MemoryStreamException::ALREADY_OPEN);
        }

        $this->setOpen(true);
    }
public function open()
    {
        if ($this->isOpen() === true) {
            $msg = "The MemoryStream is already open.";
            throw new MemoryStreamException($msg, $this, MemoryStreamException::ALREADY_OPEN);
        }

        $this->setOpen(true);
    }
public function open ( ) { if ( $ this -> isOpen ( ) === true ) { $ msg = "The MemoryStream is already open." ; throw new MemoryStreamException ( $ msg , $ this , MemoryStreamException :: ALREADY_OPEN ) ; } $ this -> setOpen ( true ) ; }
Open the binary stream.

@throws \qtism\common\storage\MemoryStreamException If the stream is already opened.
Open the binary stream .