src/Bunny/Protocol/ProtocolWriter.php
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);
    }
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);
    }
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 ) ; }
Appends AMQP table to buffer.

@param array $table
@param Buffer $originalBuffer
Appends AMQP table to buffer .