From 2e82773e3f043ce07469425225185fb17def312c Mon Sep 17 00:00:00 2001 From: Fulton Browne Date: Sat, 15 May 2021 00:33:11 +0000 Subject: plan9 --- base64.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'base64.h') diff --git a/base64.h b/base64.h index c700c7f..eb0dfbb 100644 --- a/base64.h +++ b/base64.h @@ -1,4 +1,4 @@ -/* +/* base64.c - by Joe DF (joedf@ahkscript.org) Released under the MIT License @@ -8,7 +8,6 @@ http://www.codeproject.com/Tips/813146/Fast-base-functions-for-encode-decode */ -#include //Base64 char table function - used internally for decoding unsigned int b64_int(unsigned int ch); @@ -25,13 +24,13 @@ 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(const unsigned char* in, unsigned int in_len, unsigned char* out); +unsigned int b64_encode(unsigned char* in, unsigned int in_len, unsigned 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(const unsigned char* in, unsigned int in_len, unsigned char* out); +unsigned int b64_decode(unsigned char* in, unsigned int in_len, unsigned char* out); // file-version b64_encode // Input : filenames @@ -41,4 +40,4 @@ 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); \ No newline at end of file +unsigned int b64_decodef(char *InFile, char *OutFile); -- cgit 1.4.1-2-gfad0