aboutsummaryrefslogtreecommitdiff
path: root/base64.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-19 12:19:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-19 12:19:42 +0000
commit9c3ccc182ef2eca08657ff2dc5bf0551c4ba26f7 (patch)
tree92439d824b6f0ac4eb5bf4cfd5b614d9e9203a49 /base64.h
parentosc: initial implementation of OSC 52 - copy to clipboard (diff)
base64: implement encode()
Diffstat (limited to 'base64.h')
-rw-r--r--base64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base64.h b/base64.h
index e7a3613b..d4042512 100644
--- a/base64.h
+++ b/base64.h
@@ -1,3 +1,8 @@
#pragma once
+#include <stdint.h>
+#include <stddef.h>
+
char *base64_decode(const char *s);
+char *base64_encode(const uint8_t *data, size_t size);
+void base64_encode_final(const uint8_t *data, size_t size, char result[4]);