6#ifndef _ZFI_ZFBase64_h_
7#define _ZFI_ZFBase64_h_
51 ,
ZF_IN const
void *src
156 ,
ZF_IN const
void *src
160 return ZFBase64Encode(buf, src, srcLen, outResultSize, this->table(), this->pad(), this->lineBreakPos());
180 return ZFBase64Decode(buf, src, srcLen, outResultSize, this->table(), this->pad());
global header for ZFAlgorithm module
#define ZFLIB_ZFAlgorithm
used to export symbols
Definition ZFAlgorithmDef.h:14
ZFLIB_ZFAlgorithm zfbool ZFBase64Decode(void *buf, const zfchar *src, zfindex srcLen=((zfindex) -1), zfindex *outResultSize=zft_zfnull, const zfchar *table=ZFBase64TableDefault(), zfchar pad=ZFBase64PadDefault())
encode base64, return byte size written even if error occurred
zfindex const & ZFBase64LineBreakPosStandard(void)
standard line break position for ZFBase64, 76 by default
Definition ZFBase64.h:26
ZFLIB_ZFAlgorithm zfindex ZFBase64DecodeCalcSize(zfindex srcLen, zfindex lineBreakPos=(ZFBase64LineBreakPosNone()))
calculate required size to store result, ensured big enough but not ensure exactly the same
ZFLIB_ZFAlgorithm zfbool ZFBase64Encode(zfchar *buf, const void *src, zfindex srcLen=((zfindex) -1), zfindex *outResultSize=zft_zfnull, const zfchar *table=ZFBase64TableDefault(), zfchar pad=ZFBase64PadDefault(), zfindex lineBreakPos=ZFBase64LineBreakPosNone())
encode base64
ZFLIB_ZFAlgorithm zfindex ZFBase64EncodeCalcSize(zfindex srcLen, zfindex lineBreakPos=(ZFBase64LineBreakPosNone()))
calculate required size to store result, ensured big enough but not ensure exactly the same
const zfchar *const & ZFBase64TableDefault(void)
char table for ZFBase64, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" by defaul...
Definition ZFBase64.h:16
zfindex const & ZFBase64LineBreakPosNone(void)
no line break for ZFBase64
Definition ZFBase64.h:31
zfchar const & ZFBase64PadDefault(void)
pad token for ZFBase64, '=' by default
Definition ZFBase64.h:21
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFEXPORT_VAR_READONLY_DECLARE(ZFLIB_, Type, Name)
see ZFEXPORT_VAR_DECLARE
Definition ZFExport.h:115
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_OUT_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:114
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1206
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#define ZFMETHOD_FUNC_DECLARE_5(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1228
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_7(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5, ZFMP_6)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1578
#define ZFMETHOD_FUNC_DECLARE_6(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3, ZFMP_4, ZFMP_5)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1399
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFIMPLEMENT_DECLARE(ImplementedInterfaces,...)
see ZFINTERFACE_DECLARE
Definition ZFObjectInterface.h:169
#define zfimplement
shows class implement from interface, see ZFInterface
Definition ZFObjectInterface.h:24
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
virtual zfindex decodeCalcSize(zfindex srcLen)
see ZFBase64DecodeCalcSize
virtual zfindex & lineBreakPos()
see ZFBase64LineBreakPosNone
Definition ZFBase64.h:146
virtual zfstring & table()
see ZFBase64TableDefault
Definition ZFBase64.h:142
virtual zfindex encodeCalcSize(zfindex srcLen)
see ZFBase64EncodeCalcSize
virtual zfchar & pad()
see ZFBase64PadDefault
Definition ZFBase64.h:144
virtual zfbool encode(zfchar *buf, const void *src, zfindex srcLen=((zfindex) -1), zfindex *outResultSize=zft_zfnull)
see ZFBase64Encode
Definition ZFBase64.h:154
virtual zfbool decode(void *buf, const zfchar *src, zfindex srcLen=((zfindex) -1), zfindex *outResultSize=zft_zfnull)
see ZFBase64Decode
Definition ZFBase64.h:174
general output callback
Definition ZFIOCallback_output.h:37