lib/SteamCondenser/ByteBuffer.php
public function getString() {
        $zeroByteIndex = strpos($this->byteArray, "\0", $this->position);
        if($zeroByteIndex === false) {
            return '';
        } else {
            $dataString = $this->get($zeroByteIndex - $this->position);
            $this->position ++;

            return $dataString;
        }
    }
public function getString() {
        $zeroByteIndex = strpos($this->byteArray, "\0", $this->position);
        if($zeroByteIndex === false) {
            return '';
        } else {
            $dataString = $this->get($zeroByteIndex - $this->position);
            $this->position ++;

            return $dataString;
        }
    }
Reads a zero-byte terminated string from the current position of the
byte buffer

This reads the buffer up until the first occurance of a zero-byte or the
end of the buffer. The zero-byte is not included in the returned string.

@return string The zero-byte terminated string read from the byte stream