#include <stdio.h>
static int sample_setup() {
return 1;
}
return 0;
}
static int sample_wasdk_base64() {
const unsigned char original[] = { 'T','e','s','t' };
char encoded[9] = { 0, };
unsigned char decoded[4] = { 0, };
int decodeSize = 0;
printf("sample_wasdk_base64() => ");
return 1;
}
return 1;
}
printf("[OK]\n");
return 0;
}
int main() {
int result;
result = sample_setup();
if (result != 0) {
return result;
}
return sample_wasdk_base64();
}
EErrorCode
새롭게 구현된 내부 API 에서 사용되는 에러코드들
Definition: wasdk_errorcode.h:13
@ EEC_Success
성공
Definition: wasdk_errorcode.h:14
WA_SDK_API const char *FUNCCALL wasdk_error_message(EErrorCode errorCode)
에러코드에 해당하는 에러 메시지를 가져온다.
WA_SDK_API EErrorCode FUNCCALL wasdk_init(void)
모듈 초기화를 실행한다.
WA_SDK_API EErrorCode FUNCCALL wasdk_base64_decoding(unsigned char *data, int *dataSize, int dataBufSize, const char *b64)
Base64 디코딩
WA_SDK_API EErrorCode FUNCCALL wasdk_base64_encoding(char *b64, int b64BufSize, const unsigned char *data, int dataSize)
Base64 인코딩