blob: a86e699be23d6a8057ee4f1e646792a287f1792a [file] [log] [blame]
Brian Silvermanf7bd1c22015-12-24 16:07:11 -08001/*----------------------------------------------------------------------------*/
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
16namespace nt {
17
18std::size_t Base64Decode(llvm::StringRef encoded, std::string* plain);
19void Base64Encode(llvm::StringRef plain, std::string* encoded);
20
21} // namespace nt
22
23#endif // NT_BASE64_H_