src/Io/Buffer.php
public function readStringNull()
    {
        $pos = \strpos($this->buffer, "\0", $this->bufferPos);
        if ($pos === false) {
            throw new \LogicException('Missing NULL character');
        }

        $ret = $this->read($pos - $this->bufferPos);
        ++$this->bufferPos;

        return $ret;
    }
public function readStringNull()
    {
        $pos = \strpos($this->buffer, "\0", $this->bufferPos);
        if ($pos === false) {
            throw new \LogicException('Missing NULL character');
        }

        $ret = $this->read($pos - $this->bufferPos);
        ++$this->bufferPos;

        return $ret;
    }
public function readStringNull ( ) { $ pos = \ strpos ( $ this -> buffer , "\0" , $ this -> bufferPos ) ; if ( $ pos === false ) { throw new \ LogicException ( 'Missing NULL character' ) ; } $ ret = $ this -> read ( $ pos - $ this -> bufferPos ) ; ++ $ this -> bufferPos ; return $ ret ; }
Reads string until NULL character

@return string
@throws \LogicException
Reads string until NULL character