mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Base64: Add raw_ostream and SmallString interfaces. (#19)
This commit is contained in:
@@ -13,11 +13,28 @@
|
||||
|
||||
#include "llvm/StringRef.h"
|
||||
|
||||
namespace llvm {
|
||||
template <typename T>
|
||||
class SmallVectorImpl;
|
||||
class raw_ostream;
|
||||
}
|
||||
|
||||
namespace wpi {
|
||||
|
||||
std::size_t Base64Decode(llvm::raw_ostream& os, llvm::StringRef encoded);
|
||||
|
||||
std::size_t Base64Decode(llvm::StringRef encoded, std::string* plain);
|
||||
|
||||
llvm::StringRef Base64Decode(llvm::StringRef encoded, std::size_t* num_read,
|
||||
llvm::SmallVectorImpl<char>& buf);
|
||||
|
||||
void Base64Encode(llvm::raw_ostream& os, llvm::StringRef plain);
|
||||
|
||||
void Base64Encode(llvm::StringRef plain, std::string* encoded);
|
||||
|
||||
llvm::StringRef Base64Encode(llvm::StringRef plain,
|
||||
llvm::SmallVectorImpl<char>& buf);
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_SUPPORT_BASE64_H_
|
||||
|
||||
Reference in New Issue
Block a user