hl7parse
base64.h
Go to the documentation of this file.
1 
6 // https://en.wikibooks.org/wiki/Algorithm_Implementation/Miscellaneous/Base64#C_2
7 #pragma once
8 
9 #include <inttypes.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
24 int base64decode(char *in, size_t inLen, unsigned char *out, size_t *outLen);
25 
37 int hl7_64decode(char *in, size_t inLen, unsigned char *out, size_t *outLen);
38 
49 int hl7_64decode_fd(char *in, size_t inLen, FILE *out_fd);
50 
60 int base64encode(const void* data_buf, size_t dataLength, char* result, size_t resultSize);
61 
62 #ifdef __cplusplus
63 }
64 #endif
int hl7_64decode_fd(char *in, size_t inLen, FILE *out_fd)
decode base64 buffer to a file
Definition: base64.c:27
int base64encode(const void *data_buf, size_t dataLength, char *result, size_t resultSize)
encode base64
Definition: base64.c:237
int hl7_64decode(char *in, size_t inLen, unsigned char *out, size_t *outLen)
decode base64 a buffer
Definition: base64.c:111
int base64decode(char *in, size_t inLen, unsigned char *out, size_t *outLen)
decode base64 a buffer
Definition: base64.c:193