lib/SteamCondenser/ByteBuffer.php
public function get($length = null) {
        if($length === null) {
            $length = $this->limit - $this->position;
        } elseif($length > $this->remaining()) {
            throw new BufferUnderFlowException();
        }

        $data = substr($this->byteArray, $this->position, $length);
        $this->position += $length;

        return $data;
    }
public function get($length = null) {
        if($length === null) {
            $length = $this->limit - $this->position;
        } elseif($length > $this->remaining()) {
            throw new BufferUnderFlowException();
        }

        $data = substr($this->byteArray, $this->position, $length);
        $this->position += $length;

        return $data;
    }
Reads the specified amount of bytes from the current <var>position</var>
of the byte buffer

@param int $length The amount of bytes to read from the buffer or
<var>null</var> if everything up to <var>limit</var> should be
read
@return string The data read from the buffer
@throws BufferUnderflowException if the buffer does not contain $length
or more bytes after the current position