def METHOD_NAME(self, payload, cmpl_ofst, cmpl_idx, cq_ofst, cq_addr):
    payload = payload[0:cmpl_ofst] + struct.pack('<H', cmpl_idx) + payload[cmpl_ofst+2:]
    payload = payload[0:cq_ofst] + struct.pack('!Q', cq_addr) + payload[cq_ofst+8:]
    return payload