public function skip($len)
    {
        if ($len < 1 || !isset($this->buffer[$this->bufferPos + $len - 1])) {
            throw new \LogicException('Not enough data in buffer');
        }
        $this->bufferPos += $len;
    }