public function appendTable(array $table, Buffer $originalBuffer)
    {
        $buffer = new Buffer();

        foreach ($table as $k => $v) {
            $buffer->appendUint8(strlen($k));
            $buffer->append($k);
            $this->appendFieldValue($v, $buffer);
        }

        $originalBuffer->appendUint32($buffer->getLength());
        $originalBuffer->append($buffer);
    }