24#ifndef __M_BINCODEC_H__
25#define __M_BINCODEC_H__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
64#define M_BINCODEC_PEM_LINE_LEN 64
char * M_bincodec_convert_alloc(const char *in, size_t inLen, size_t wrap, M_bincodec_codec_t inCodec, M_bincodec_codec_t outCodec) M_WARN_UNUSED_RESULT M_MALLOC
M_bincodec_codec_t
Definition: m_bincodec.h:67
size_t M_bincodec_convert(char *out, size_t outLen, size_t wrap, M_bincodec_codec_t outCodec, const char *in, size_t inLen, M_bincodec_codec_t inCodec)
M_uint8 * M_bincodec_decode_alloc(const char *in, size_t inLen, size_t *outLen, M_bincodec_codec_t codec) M_WARN_UNUSED_RESULT M_MALLOC
size_t M_bincodec_decode(M_uint8 *out, size_t outLen, const char *in, size_t inLen, M_bincodec_codec_t codec)
size_t M_bincodec_encode(char *out, size_t outLen, const M_uint8 *in, size_t inLen, size_t wrap, M_bincodec_codec_t codec)
size_t M_bincodec_encode_size(size_t inLen, size_t wrap, M_bincodec_codec_t codec)
char * M_bincodec_encode_alloc(const M_uint8 *in, size_t inLen, size_t wrap, M_bincodec_codec_t codec) M_WARN_UNUSED_RESULT M_MALLOC
size_t M_bincodec_decode_size(size_t inLen, M_bincodec_codec_t codec)
char * M_bincodec_decode_str_alloc(const char *in, M_bincodec_codec_t codec)
@ M_BINCODEC_BASE64ORHEX
Definition: m_bincodec.h:70
@ M_BINCODEC_BASE32
Definition: m_bincodec.h:71
@ M_BINCODEC_HEX
Definition: m_bincodec.h:69
@ M_BINCODEC_BASE64
Definition: m_bincodec.h:68