encodePartition = ({ partition, fetchOffset, maxBytes }) => {
  return new Encoder()
    .writeInt32(partition)
    .writeInt64(fetchOffset)
    .writeInt32(maxBytes)
}
@param {number} replicaId Broker id of the follower
@param {number} maxWaitTime Maximum time in ms to wait for the response
@param {number} minBytes Minimum bytes to accumulate in the response.
@param {Array} topics Topics to fetch
                       [
                         {
                           topic: 'topic-name',
                           partitions: [
                             {
                               partition: 0,
                               fetchOffset: '4124',
                               maxBytes: 2048
                             }
                           ]
                         }
                       ]