2020-05-18 21:00:37 +00:00
|
|
|
#ifndef OGS_SBI_BINARY_H
|
|
|
|
#define OGS_SBI_BINARY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct OpenAPI_binary_s {
|
2020-06-17 05:22:28 +00:00
|
|
|
char* data;
|
|
|
|
int len;
|
2020-05-18 21:00:37 +00:00
|
|
|
} OpenAPI_binary_t;
|
|
|
|
|
|
|
|
OpenAPI_binary_t *OpenAPI_instantiate_binary_t(char *data, int len);
|
|
|
|
|
|
|
|
char *OpenAPI_base64encode(const void *b64_encode_this,
|
2021-07-07 08:32:55 +00:00
|
|
|
int encode_this_many_bytes);
|
2020-05-18 21:00:37 +00:00
|
|
|
|
|
|
|
char *OpenAPI_base64decode(const void *b64_decode_this,
|
2021-07-07 08:32:55 +00:00
|
|
|
int decode_this_many_bytes, int *decoded_bytes);
|
2020-05-18 21:00:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // OGS_SBI_BINARY_H
|