protected function produceTopicPair(string $data, int $version): array
    {
        $offset    = 0;
        $topicInfo = $this->decodeString($data, self::BIT_B16);
        $offset   += $topicInfo['length'];
        $ret       = $this->decodeArray(substr($data, $offset), [$this, 'producePartitionPair'], $version);
        $offset   += $ret['length'];

        return [
            'length' => $offset,
            'data'   => [
                'topicName'  => $topicInfo['data'],
                'partitions' => $ret['data'],
            ],
        ];
    }
protected function produceTopicPair(string $data, int $version): array
    {
        $offset    = 0;
        $topicInfo = $this->decodeString($data, self::BIT_B16);
        $offset   += $topicInfo['length'];
        $ret       = $this->decodeArray(substr($data, $offset), [$this, 'producePartitionPair'], $version);
        $offset   += $ret['length'];

        return [
            'length' => $offset,
            'data'   => [
                'topicName'  => $topicInfo['data'],
                'partitions' => $ret['data'],
            ],
        ];
    }
protected function produceTopicPair ( string $ data , int $ version ) : array { $ offset = 0 ; $ topicInfo = $ this -> decodeString ( $ data , self :: BIT_B16 ) ; $ offset += $ topicInfo [ 'length' ] ; $ ret = $ this -> decodeArray ( substr ( $ data , $ offset ) , [ $ this , 'producePartitionPair' ] , $ version ) ; $ offset += $ ret [ 'length' ] ; return [ 'length' => $ offset , 'data' => [ 'topicName' => $ topicInfo [ 'data' ] , 'partitions' => $ ret [ 'data' ] , ] , ] ; }
decode produce topic pair response

@return mixed[]

@throws ProtocolException
decode produce topic pair response