Files
fmviewer3/project/fm_viewer/cfg/fm_base64.h
2026-02-21 17:11:31 +09:00

21 lines
600 B
C++

#ifndef FM_BASE64_H
#define FM_BASE64_H
#include "../rm_include.h"
#if (ENCODE_CFG_BASE64)
#if (RM_MODEL == RM_MODEL_TYPE_AN6000)
#include <inttypes.h>
class FMBase64
{
public:
static QStringList load(QString path, bool* isEncoded);
static void save(QString path, QStringList lines, bool isEncoded);
private:
static uint8_t* mg_base64_encode(const uint8_t *src, uint32_t len, uint32_t *out_len);
static uint8_t* mg_base64_decode(uint8_t *src, uint32_t len, uint32_t *out_len);
};
#endif // #if (RM_MODEL == RM_MODEL_TYPE_AN6000)
#endif // ENCODE_CFG_BASE64
#endif // FM_BASE64_H