Skip to content

jacquesfauquex/c-base64-mini-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

c base64 mini decoder

void b64d(const char *i, int *ii, char *o, int *oo, int limit);

decodes the buffer i into the buffer o

the initial offset of o may be inferior to the initial offset of i within the SAME BUFFER (palimpseste). This is no problem since the output is linearly 3/4th in size of the input.

the method decodes

  • until a character other than ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ is found
  • or until a limit is reached

when the method returns, ii and oo are filled with the length of base64 and decoded buffers respectively.

By design, error control is not needed within the method. The caller gets the necessary information to perform that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages