KMime::BinaryCodec Class Reference

A class representing the codec for eight-bit-binary. More...

#include <kmime_codec_identity.h>

Inheritance diagram for KMime::BinaryCodec:

List of all members.

Public Member Functions

 ~BinaryCodec ()
int maxDecodedSizeFor (int insize, bool withCRLF=false) const
int maxEncodedSizeFor (int insize, bool withCRLF=false) const
const char * name () const

Protected Member Functions

 BinaryCodec ()

Detailed Description

A class representing the codec for eight-bit-binary.

Definition at line 175 of file kmime_codec_identity.h.


Constructor & Destructor Documentation

KMime::BinaryCodec::BinaryCodec (  )  [inline, protected]

Constructs the 8-bit-binary codec.

Definition at line 182 of file kmime_codec_identity.h.

KMime::BinaryCodec::~BinaryCodec (  )  [inline]

Destroys the codec.

Definition at line 188 of file kmime_codec_identity.h.


Member Function Documentation

int KMime::BinaryCodec::maxDecodedSizeFor ( int  insize,
bool  withCRLF = false 
) const [inline, virtual]

Computes the maximum size, in characters, needed for the deccoding.

Parameters:
insize is the number of input characters to be decoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the decoding.

Reimplemented from KMime::IdentityCodec.

Definition at line 208 of file kmime_codec_identity.h.

int KMime::BinaryCodec::maxEncodedSizeFor ( int  insize,
bool  withCRLF = false 
) const [inline, virtual]

Computes the maximum size, in characters, needed for the encoding.

Parameters:
insize is the number of input characters to be encoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the encoding.

Reimplemented from KMime::IdentityCodec.

Definition at line 201 of file kmime_codec_identity.h.

const char* KMime::BinaryCodec::name (  )  const [inline, virtual]

Returns the name of the encoding. Guaranteed to be lowercase.

Implements KMime::Codec.

Definition at line 194 of file kmime_codec_identity.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys