summaryrefslogtreecommitdiffstats
path: root/test/src/test-base64.cpp
blob: 1267b7bd07c24e8638ace8a383de1b9f4611e059 (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 (int i = 0; i < SOURCE_LEN; i++) {
		buffer[i] = (char)55;
	}

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

}