/*----------------------------------------------------------------------------*/ /* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ #ifndef WPIUTIL_WPI_BASE64_H_ #define WPIUTIL_WPI_BASE64_H_ #include #include #include "wpi/StringRef.h" namespace wpi { template class SmallVectorImpl; class raw_ostream; size_t Base64Decode(raw_ostream& os, StringRef encoded); size_t Base64Decode(StringRef encoded, std::string* plain); StringRef Base64Decode(StringRef encoded, size_t* num_read, SmallVectorImpl& buf); void Base64Encode(raw_ostream& os, StringRef plain); void Base64Encode(StringRef plain, std::string* encoded); StringRef Base64Encode(StringRef plain, SmallVectorImpl& buf); } // namespace wpi #endif // WPIUTIL_WPI_BASE64_H_