#ifndef TINY_CONVMEM_SYS_ENCODING_H #define TINY_CONVMEM_SYS_ENCODING_H #include #include typedef enum tiny_encoding_status { TINY_ENCODING_OK = 0, TINY_ENCODING_INVALID, TINY_ENCODING_NO_MEMORY, TINY_ENCODING_OVERFLOW } tiny_encoding_status_t; tiny_encoding_status_t tiny_utf8_to_utf16(const char *input, size_t input_length, uint16_t **output, size_t *output_length); tiny_encoding_status_t tiny_utf16_to_utf8(const uint16_t *input, size_t input_length, char **output, size_t *output_length); #endif