coreutils / injectable_functions /basenc_injectable_functions.json
AryaWu's picture
Upload folder using huggingface_hub
78d2150 verified
[
{
"function_name": "usage",
"function_signature": "void usage (int status)",
"include_line": "#include \"../tests/basenc/tests_for_usage.c\""
},
{
"function_name": "decode_ctx_finalize",
"function_signature": "static bool decode_ctx_finalize (struct base_decode_context *ctx,\n char *restrict *out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_decode_ctx_finalize.c\""
},
{
"function_name": "base64url_encode",
"function_signature": "static void base64url_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base64url_encode.c\""
},
{
"function_name": "base64url_decode_ctx_wrapper",
"function_signature": "static bool base64url_decode_ctx_wrapper (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base64url_decode_ctx_wrapper.c\""
},
{
"function_name": "base32hex_encode",
"function_signature": "static void base32hex_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base32hex_encode.c\""
},
{
"function_name": "base32hex_decode_ctx_wrapper",
"function_signature": "static bool base32hex_decode_ctx_wrapper (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base32hex_decode_ctx_wrapper.c\""
},
{
"function_name": "base16_encode",
"function_signature": "static void base16_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base16_encode.c\""
},
{
"function_name": "base16_decode_ctx",
"function_signature": "static bool base16_decode_ctx (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base16_decode_ctx.c\""
},
{
"function_name": "z85_encode",
"function_signature": "static void z85_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_z85_encode.c\""
},
{
"function_name": "z85_decode_ctx",
"function_signature": "static bool z85_decode_ctx (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_z85_decode_ctx.c\""
},
{
"function_name": "base2msbf_encode",
"function_signature": "inline static void base2msbf_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base2msbf_encode.c\""
},
{
"function_name": "base2lsbf_encode",
"function_signature": "inline static void base2lsbf_encode (char const *restrict in, idx_t inlen,\n char *restrict out, idx_t outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base2lsbf_encode.c\""
},
{
"function_name": "base2lsbf_decode_ctx",
"function_signature": "static bool base2lsbf_decode_ctx (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base2lsbf_decode_ctx.c\""
},
{
"function_name": "base2msbf_decode_ctx",
"function_signature": "static bool base2msbf_decode_ctx (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base2msbf_decode_ctx.c\""
},
{
"function_name": "base58_length",
"function_signature": "ATTRIBUTE_PURE static idx_t base58_length (idx_t len)",
"include_line": "#include \"../tests/basenc/tests_for_base58_length.c\""
},
{
"function_name": "base58_encode_ctx",
"function_signature": "static bool base58_encode_ctx (struct base_encode_context *ctx,\n char const *restrict in, idx_t inlen,\n MAYBE_UNUSED char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_encode_ctx.c\""
},
{
"function_name": "base58_encode",
"function_signature": "static void base58_encode (char const* data, size_t data_len,\n char *out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_encode.c\""
},
{
"function_name": "base58_encode_ctx_finalize",
"function_signature": "static bool base58_encode_ctx_finalize (struct base_encode_context *ctx,\n char *restrict *out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_encode_ctx_finalize.c\""
},
{
"function_name": "base58_decode_ctx",
"function_signature": "static bool base58_decode_ctx (struct base_decode_context *ctx,\n char const *restrict in, idx_t inlen,\n MAYBE_UNUSED char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_decode_ctx.c\""
},
{
"function_name": "base58_decode",
"function_signature": "static bool base58_decode (char const *data, size_t data_len,\n char *restrict out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_decode.c\""
},
{
"function_name": "base58_decode_ctx_finalize",
"function_signature": "static bool base58_decode_ctx_finalize (struct base_decode_context *ctx,\n char *restrict *out, idx_t *outlen)",
"include_line": "#include \"../tests/basenc/tests_for_base58_decode_ctx_finalize.c\""
},
{
"function_name": "wrap_write",
"function_signature": "static void wrap_write (char const *buffer, idx_t len,\n idx_t wrap_column, idx_t *current_column, FILE *out)",
"include_line": "#include \"../tests/basenc/tests_for_wrap_write.c\""
},
{
"function_name": "finish_and_exit",
"function_signature": "static _Noreturn void finish_and_exit (FILE *in, char const *infile)",
"include_line": "#include \"../tests/basenc/tests_for_finish_and_exit.c\""
},
{
"function_name": "do_encode",
"function_signature": "static _Noreturn void do_encode (FILE *in, char const *infile, FILE *out, idx_t wrap_column)",
"include_line": "#include \"../tests/basenc/tests_for_do_encode.c\""
},
{
"function_name": "do_decode",
"function_signature": "static _Noreturn void do_decode (FILE *in, char const *infile, FILE *out, bool ignore_garbage)",
"include_line": "#include \"../tests/basenc/tests_for_do_decode.c\""
}
]