summaryrefslogtreecommitdiffstats
path: root/test/src/test-base64.cpp
blob: 4981a268c840b13b856e73fbf8c7184c3c85bc8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "uscxml/util/Base64.hpp"
#include <assert.h>

#define SOURCE_LEN 10

int main(int argc, char** argv) {
	std::string data;
	std::string base64CPP;
	std::string base64C;

	char buffer[SOURCE_LEN];
	for (size_t i = 0; i < SOURCE_LEN; i++) {
		buffer[i] = (char)55;
	}

	base64C = uscxml::base64Encode(buffer, SOURCE_LEN);

}