Renamed the base64 methods, and switched the EncodeBase64 one to return a string (to make it easy to use elsewhere)

This commit is contained in:
Jesse Beder
2012-01-21 01:33:49 -06:00
parent 6105d4cfeb
commit d760d037ca
3 changed files with 24 additions and 22 deletions

View File

@@ -5,14 +5,13 @@
#pragma once
#endif
#include <string>
#include <vector>
namespace YAML
{
class ostream;
void WriteBase64(ostream& out, const unsigned char *data, std::size_t size);
std::vector<unsigned char> ReadBase64(const std::string& input);
std::string EncodeBase64(const unsigned char *data, std::size_t size);
std::vector<unsigned char> DecodeBase64(const std::string& input);
class Binary {
public: