Fix up naming of Base64 and Leb128 functions.

Change-Id: I80a2493d822b59311ba0d7bd68b5ccf0e3b29e6a
This commit is contained in:
Peter Johnson
2015-06-25 23:19:24 -07:00
parent d7ca3343bc
commit de4ba1aa35
11 changed files with 39 additions and 37 deletions

View File

@@ -88,7 +88,7 @@ static const unsigned char pr2six[256] =
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
};
std::size_t base64decode_len(const char *bufcoded) {
std::size_t Base64DecodeLen(const char *bufcoded) {
const unsigned char *bufin = (const unsigned char *)bufcoded;
while (pr2six[*(bufin++)] <= 63) {
}
@@ -99,7 +99,7 @@ std::size_t base64decode_len(const char *bufcoded) {
return nbytesdecoded + 1;
}
std::size_t base64decode(char *bufplain, const char *bufcoded) {
std::size_t Base64Decode(char *bufplain, const char *bufcoded) {
const unsigned char *bufin = (const unsigned char *)bufcoded;
while (pr2six[*(bufin++)] <= 63) {
}
@@ -138,11 +138,11 @@ std::size_t base64decode(char *bufplain, const char *bufcoded) {
static const char basis_64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
std::size_t base64encode_len(std::size_t len) {
std::size_t Base64EncodeLen(std::size_t len) {
return ((len + 2) / 3 * 4) + 1;
}
std::size_t base64encode(char *encoded, const unsigned char *string,
std::size_t Base64Encode(char *encoded, const unsigned char *string,
std::size_t len) {
std::size_t i;
char *p = encoded;