Brian Silverman | f7bd1c2 | 2015-12-24 16:07:11 -0800 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------------*/ |
| 2 | /* Copyright (c) FIRST 2015. All Rights Reserved. */ |
| 3 | /* Open Source Software - may be modified and shared by FRC teams. The code */ |
| 4 | /* must be accompanied by the FIRST BSD license file in the root directory of */ |
| 5 | /* the project. */ |
| 6 | /*----------------------------------------------------------------------------*/ |
| 7 | |
| 8 | #ifndef NT_BASE64_H_ |
| 9 | #define NT_BASE64_H_ |
| 10 | |
| 11 | #include <cstddef> |
| 12 | #include <string> |
| 13 | |
| 14 | #include "llvm/StringRef.h" |
| 15 | |
| 16 | namespace nt { |
| 17 | |
| 18 | std::size_t Base64Decode(llvm::StringRef encoded, std::string* plain); |
| 19 | void Base64Encode(llvm::StringRef plain, std::string* encoded); |
| 20 | |
| 21 | } // namespace nt |
| 22 | |
| 23 | #endif // NT_BASE64_H_ |