|
|
|||
File indexing completed on 2026-04-17 08:35:01
0001 /* 0002 * Licensed to the Apache Software Foundation (ASF) under one 0003 * or more contributor license agreements. See the NOTICE file 0004 * distributed with this work for additional information 0005 * regarding copyright ownership. The ASF licenses this file 0006 * to you under the Apache License, Version 2.0 (the 0007 * "License"); you may not use this file except in compliance 0008 * with the License. You may obtain a copy of the License at 0009 * 0010 * http://www.apache.org/licenses/LICENSE-2.0 0011 * 0012 * Unless required by applicable law or agreed to in writing, 0013 * software distributed under the License is distributed on an 0014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 0015 * KIND, either express or implied. See the License for the 0016 * specific language governing permissions and limitations 0017 * under the License. 0018 */ 0019 0020 #ifndef _THRIFT_PROTOCOL_TBASE64UTILS_H_ 0021 #define _THRIFT_PROTOCOL_TBASE64UTILS_H_ 0022 0023 #include <stdint.h> 0024 #include <string> 0025 0026 namespace apache { 0027 namespace thrift { 0028 namespace protocol { 0029 0030 // in must be at least len bytes 0031 // len must be 1, 2, or 3 0032 // buf must be a buffer of at least 4 bytes and may not overlap in 0033 // the data is not padded with '='; the caller can do this if desired 0034 void base64_encode(const uint8_t* in, uint32_t len, uint8_t* buf); 0035 0036 // buf must be a buffer of at least 4 bytes and contain base64 encoded values 0037 // buf will be changed to contain output bytes 0038 // len is number of bytes to consume from input (must be 2, 3, or 4) 0039 // no '=' padding should be included in the input 0040 void base64_decode(uint8_t* buf, uint32_t len); 0041 } 0042 } 0043 } // apache::thrift::protocol 0044 0045 #endif // #define _THRIFT_PROTOCOL_TBASE64UTILS_H_
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|