src/bin/run.cpp
void ProcessOutputBlock(CryptoClientArguments const & config, char const * data, std::uint64_t size) {

    if (config.hex_output_ || config.multiline_output_) {
        auto hex = headcode::mem::MemoryToHex(data, size);
        config.out_ << hex;
    } else {
        try {
            config.out_.write(data, size);
        } catch (std::exception & ex) {
            config.err_ << "Failed to write output: " << ex.what() << std::endl;
        }
    }
}
/**
 * @brief   Produce the output.
 * @param   config          The config as requested by the user.
 * @param   result          The result generated.
 */
@brief   Produce the output.
@param   config          The config as requested by the user.
@param   result          The result generated.
@brief Produce the output . @param config The config as requested by the user . @param result The result generated .
void ProcessOutputBlock(CryptoClientArguments const & config, char const * data, std::uint64_t size) {
    if (config.hex_output_ || config.multiline_output_) {
        auto hex = headcode::mem::MemoryToHex(data, size);
        config.out_ << hex;
    } else {
        try {
            config.out_.write(data, size);
        } catch (std::exception & ex) {
            config.err_ << "Failed to write output: " << ex.what() << std::endl;
        }
    }
}
void ProcessOutputBlock ( CryptoClientArguments const & config , char const * data , std :: uint64_t size ) { if ( config . hex_output_ || config . multiline_output_ ) { auto hex = headcode :: mem :: MemoryToHex ( data , size ) ; config . out_ << hex ; } else { try { config . out_ . write ( data , size ) ; } catch ( std :: exception & ex ) { config . err_ << " " << ex . what ( ) << std :: endl ; } } }
@brief   Produce the output.
@brief Produce the output .