aboutsummaryrefslogtreecommitdiff
path: root/picohttp_base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'picohttp_base64.h')
-rw-r--r--picohttp_base64.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/picohttp_base64.h b/picohttp_base64.h
new file mode 100644
index 0000000..736b670
--- /dev/null
+++ b/picohttp_base64.h
@@ -0,0 +1,21 @@
+#pragma once
+#ifndef PICOHTTP_BASE64_H
+#define PICOHTTP_BASE64_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+typedef uint8_t phb64raw_t[3];
+typedef char phb64enc_t[4];
+typedef uint32_t phb64state_t;
+
+void phb64encode(
+ phb64raw_t const raw,
+ size_t count,
+ phb64enc_t enc);
+
+size_t phb64decode(
+ phb64enc_t const enc,
+ phb64raw_t raw);
+
+#endif/*PICOHTTP_BASE64_H*/