src/Bunny/Protocol/ProtocolReader.php
public function consumeArray(Buffer $originalBuffer)
    {
        $buffer = $originalBuffer->consumeSlice($originalBuffer->consumeUint32());
        $data = [];
        while (!$buffer->isEmpty()) {
            $data[] = $this->consumeFieldValue($buffer);
        }
        return $data;
    }
public function consumeArray(Buffer $originalBuffer)
    {
        $buffer = $originalBuffer->consumeSlice($originalBuffer->consumeUint32());
        $data = [];
        while (!$buffer->isEmpty()) {
            $data[] = $this->consumeFieldValue($buffer);
        }
        return $data;
    }
public function consumeArray ( Buffer $ originalBuffer ) { $ buffer = $ originalBuffer -> consumeSlice ( $ originalBuffer -> consumeUint32 ( ) ) ; $ data = [ ] ; while ( ! $ buffer -> isEmpty ( ) ) { $ data [ ] = $ this -> consumeFieldValue ( $ buffer ) ; } return $ data ; }
Consumes AMQP array from buffer.

@param Buffer $originalBuffer
@return array
Consumes AMQP array from buffer .