public function getContent($index = null, $raw = false)
    {
        if (null === $index) {
            return (bool)$raw ? $this->cbuff : join('', $this->cbuff);
        }

        if (isset($this->cbuff[(int)$index])) {
            return $this->cbuff[(int)$index];
        }

        throw new \OutOfBoundsException(sprintf('No content at buffer %d or empty buffer.', (int)$index));
    }