KMIME Library
Go to the documentation of this file.
52 #ifndef __KMIME_CODEC_BASE64__
53 #define __KMIME_CODEC_BASE64__
83 const char *name()
const
90 int maxEncodedSizeFor(
int insize,
bool withCRLF=
false )
const
93 int totalNumPackets = ( insize + 2 ) / 3;
95 int numLineBreaks = totalNumPackets / ( 76 / 4 );
99 return 4 * totalNumPackets + ( withCRLF ? 2 : 1 ) * numLineBreaks;
106 int maxDecodedSizeFor(
int insize,
bool withCRLF=
false )
const
113 int result = ( ( insize + 3 ) / 4 ) * 3;
126 Encoder *makeEncoder(
bool withCRLF=
false )
const;
132 Decoder *makeDecoder(
bool withCRLF=
false )
const;
159 const char *name()
const
166 int maxEncodedSizeFor(
int insize,
bool withCRLF=
false )
const
168 Q_UNUSED( withCRLF );
170 return ( ( insize + 2 ) / 3 ) * 4;
177 int maxDecodedSizeFor(
int insize,
bool withCRLF=
false )
const
179 Q_UNUSED( withCRLF );
182 return ( ( insize + 3 ) / 4 ) * 3;
189 Encoder *makeEncoder(
bool withCRLF=
false )
const;
194 #endif // __KMIME_CODEC_BASE64__
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:45 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.