mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fix up naming of Base64 and Leb128 functions.
Change-Id: I80a2493d822b59311ba0d7bd68b5ccf0e3b29e6a
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user