first commit
This commit is contained in:
20
project/fm_viewer/cfg/fm_base64.h
Normal file
20
project/fm_viewer/cfg/fm_base64.h
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user