summaryrefslogtreecommitdiff
path: root/src/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding.h')
-rw-r--r--src/encoding.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/encoding.h b/src/encoding.h
index d47f78e..b8f211f 100644
--- a/src/encoding.h
+++ b/src/encoding.h
@@ -21,3 +21,7 @@
/* Decodes the UTF-16LE string specified by `in_buf` into `out_buf`. */
void utf16le_decode(char *in_buf, char *out_buf, size_t len);
+
+/* Encodes the UTF-8 string specified by `in_buf` into a UTF-16LE string
+ stored in `out_buf`. */
+void utf16le_encode(char *in_buf, char *out_buf, size_t len);