diff options
author | Fulton Browne <git@fulton.software> | 2021-05-15 21:16:20 +0000 |
---|---|---|
committer | Fulton Browne <git@fulton.software> | 2021-05-15 21:16:20 +0000 |
commit | a7354ac7c6e4ddcf36e3d60851c98caa4e2d7dc1 (patch) | |
tree | d886bc906c3d3b5797fc62e694cb3b76fa0add73 /base64.h | |
parent | 2e82773e3f043ce07469425225185fb17def312c (diff) | |
download | base64-a7354ac7c6e4ddcf36e3d60851c98caa4e2d7dc1.tar.gz |
added plan9 encode
Diffstat (limited to 'base64.h')
-rw-r--r-- | base64.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/base64.h b/base64.h index eb0dfbb..7f7e319 100644 --- a/base64.h +++ b/base64.h @@ -24,20 +24,10 @@ unsigned int b64d_size(unsigned int in_size); // in_len : number of bytes to be encoded. // out : pointer to buffer with enough memory, user is responsible for memory allocation, receives null-terminated string // returns size of output including null byte -unsigned int b64_encode(unsigned char* in, unsigned int in_len, unsigned char* out); +unsigned int b64_encode(char* in, unsigned int in_len, char* out); // in : buffer of base64 string to be decoded. // in_len : number of bytes to be decoded. // out : pointer to buffer with enough memory, user is responsible for memory allocation, receives "raw" binary // returns size of output excluding null byte -unsigned int b64_decode(unsigned char* in, unsigned int in_len, unsigned char* out); - -// file-version b64_encode -// Input : filenames -// returns size of output -unsigned int b64_encodef(char *InFile, char *OutFile); - -// file-version b64_decode -// Input : filenames -// returns size of output -unsigned int b64_decodef(char *InFile, char *OutFile); +unsigned int b64_decode(char* in, unsigned int in_len, char* out); |