13 lines
463 B
C
13 lines
463 B
C
#ifndef UTILS_H
|
|||
|
|
#define UTILS_H
|
||
|
|
|
||
|
|
#include "types.h"
|
||
|
|
|
||
|
|
bool get_local_appdata_path(wchar_t* path, size_t len);
|
||
|
|
ByteBuffer* base64_decode(const char* input);
|
||
|
|
void bytes_to_hex(const uint8_t* bytes, size_t len, char* out, size_t out_len);
|
||
|
|
char* escape_json_string(const char* str);
|
||
|
|
bool read_file_content(const wchar_t* path, char** content, size_t* size);
|
||
|
|
bool write_file_content(const wchar_t* path, const char* content, size_t size);
|
||
|
|
|
||
|
|
#endif // UTILS_H
|