diff options
Diffstat (limited to 'lib/cpp/src/thrift/protocol/TBase64Utils.h')
-rw-r--r-- | lib/cpp/src/thrift/protocol/TBase64Utils.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/cpp/src/thrift/protocol/TBase64Utils.h b/lib/cpp/src/thrift/protocol/TBase64Utils.h index 3def73350..1ea67440e 100644 --- a/lib/cpp/src/thrift/protocol/TBase64Utils.h +++ b/lib/cpp/src/thrift/protocol/TBase64Utils.h @@ -23,20 +23,23 @@ #include <stdint.h> #include <string> -namespace apache { namespace thrift { namespace protocol { +namespace apache { +namespace thrift { +namespace protocol { // in must be at least len bytes // len must be 1, 2, or 3 // buf must be a buffer of at least 4 bytes and may not overlap in // the data is not padded with '='; the caller can do this if desired -void base64_encode(const uint8_t *in, uint32_t len, uint8_t *buf); +void base64_encode(const uint8_t* in, uint32_t len, uint8_t* buf); // buf must be a buffer of at least 4 bytes and contain base64 encoded values // buf will be changed to contain output bytes // len is number of bytes to consume from input (must be 2, 3, or 4) // no '=' padding should be included in the input -void base64_decode(uint8_t *buf, uint32_t len); - -}}} // apache::thrift::protocol +void base64_decode(uint8_t* buf, uint32_t len); +} +} +} // apache::thrift::protocol #endif // #define _THRIFT_PROTOCOL_TBASE64UTILS_H_ |