base64 encoder and decoder More...
#include "ZFAlgorithmDef.h"
Go to the source code of this file.
Classes | |
class | ZFBase64 |
util class to process base64 More... | |
Functions | |
const zfchar *const & | ZFBase64TableDefault (void) |
char table for ZFBase64, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" by default | |
zfchar const & | ZFBase64PadDefault (void) |
pad token for ZFBase64, '=' by default | |
zfindex const & | ZFBase64LineBreakPosStandard (void) |
standard line break position for ZFBase64, 76 by default | |
zfindex const & | ZFBase64LineBreakPosNone (void) |
no line break for ZFBase64 | |
ZFLIB_ZFAlgorithm zfindex | ZFBase64EncodeCalcSize (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 zfbool | ZFBase64Encode (const ZFOutput &outputCallback, const ZFInput &inputCallback, zfindex *outResultSize=(zft_zfnull), const zfchar *table=(ZFBase64TableDefault()), zfchar pad=(ZFBase64PadDefault()), zfindex lineBreakPos=(ZFBase64LineBreakPosNone())) |
encode base64, return byte size written even if error occurred | |
ZFLIB_ZFAlgorithm zfbool | ZFBase64Encode (zfstring &buf, const zfchar *src, zfindex srcLen=(((zfindex) -1)), zfindex *outResultSize=(zft_zfnull), const zfchar *table=(ZFBase64TableDefault()), zfchar pad=(ZFBase64PadDefault()), zfindex lineBreakPos=(ZFBase64LineBreakPosNone())) |
encode base64, return byte size written even if error occurred | |
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 | 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 | |
ZFLIB_ZFAlgorithm zfbool | ZFBase64Decode (const ZFOutput &outputCallback, const ZFInput &inputCallback, zfindex *outResultSize=(zft_zfnull), const zfchar *table=(ZFBase64TableDefault()), zfchar pad=(ZFBase64PadDefault())) |
encode base64, return byte size written even if error occurred | |
ZFLIB_ZFAlgorithm zfbool | ZFBase64Decode (zfstring &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 | |
base64 encoder and decoder
|
extern |
calculate required size to store result, ensured big enough but not ensure exactly the same
return zfindexMax() if error
|
extern |
calculate required size to store result, ensured big enough but not ensure exactly the same
return zfindexMax() if error
|
extern |
encode base64, return byte size written even if error occurred
extra space, tab, '\r', '\n' is allowed, missing pad is allowed