%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/deps/base64/base64/test/
Upload File :
Create Path :
Current File : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/deps/base64/base64/test/codec_supported.c

#include <string.h>

#include "../include/libbase64.h"

static char *_codecs[] =
{ "AVX2"
, "NEON32"
, "NEON64"
, "plain"
, "SSSE3"
, "SSE41"
, "SSE42"
, "AVX"
, "AVX512"
, NULL
} ;

char **codecs = _codecs;

int
codec_supported (int flags)
{
	// Check if given codec is supported by trying to decode a test string:
	char *a = "aGVsbG8=";
	char b[10];
	size_t outlen;

	return (base64_decode(a, strlen(a), b, &outlen, flags) != -1);
}

Zerion Mini Shell 1.0