open5gs/lib/sbi/openapi/.openapi-generator/templates/binary.h.mustache

28 lines
534 B
Plaintext

#ifndef OGS_SBI_BINARY_H
#define OGS_SBI_BINARY_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_binary_s {
uint8_t* data;
unsigned int len;
} OpenAPI_binary_t;
OpenAPI_binary_t *OpenAPI_instantiate_binary_t(char *data, int len);
char *OpenAPI_base64encode(const void *b64_encode_this,
int encode_this_many_bytes);
char *OpenAPI_base64decode(const void *b64_decode_this,
int decode_this_many_bytes, int *decoded_bytes);
#ifdef __cplusplus
}
#endif
#endif // OGS_SBI_BINARY_H