wavelength 1.0.0
Loading...
Searching...
No Matches
base64.h File Reference

Go to the source code of this file.

Functions

void Base64Encode (char *pszOut, int *pnOutLength, const unsigned char *pIn, int nInLength)
 Encode bytes as text, four characters for each three bytes.
void Base64Decode (unsigned char *pOut, int *pnOutLength, const char *pszIn, int nInLength)
 Decode text that Base64Encode() wrote.

Function Documentation

◆ Base64Encode()

void Base64Encode ( char * pszOut,
int * pnOutLength,
const unsigned char * pIn,
int nInLength )

Encode bytes as text, four characters for each three bytes.

The alphabet is the digits, the upper and lower case letters, ., and a space, in that order. The first character gives the number of bytes in the last group, 0 for a whole group. The last group is always encoded whole, with the bytes after the input. The name is inferred.

Parameters
pszOutReceives the text, which is not terminated.
pnOutLengthReceives the number of characters.
pInThe bytes.
nInLengthThe number of bytes.
Ghidra address:
NTSC-U/C: 0x002a05f8
Ghidra address:
PAL: 0x002aa568

◆ Base64Decode()

void Base64Decode ( unsigned char * pOut,
int * pnOutLength,
const char * pszIn,
int nInLength )

Decode text that Base64Encode() wrote.

The name is inferred.

Parameters
pOutReceives the bytes.
pnOutLengthReceives the number of bytes.
pszInThe text.
nInLengthThe number of characters.
Ghidra address:
NTSC-U/C: 0x002a0700
Ghidra address:
PAL: 0x002aa670