KCodecs::Base64Codec

KCodecs::Base64Codec Class Reference

#include <kcodecsbase64.h>

Inheritance diagram for KCodecs::Base64Codec:

Public Member Functions

 Base64Codec ()
 
 ~Base64Codec () override
 
DecodermakeDecoder (NewlineType newline=Codec::NewlineLF) const override
 
EncodermakeEncoder (NewlineType newline=Codec::NewlineLF) const override
 
int maxDecodedSizeFor (int insize, NewlineType newline=Codec::NewlineLF) const override
 
int maxEncodedSizeFor (int insize, NewlineType newline) const override
 
const char * name () const override
 
- Public Member Functions inherited from KCodecs::Codec
virtual ~Codec ()
 
virtual bool decode (const char *&scursor, const char *const send, char *&dcursor, const char *const dend, NewlineType newline=NewlineLF) const
 
virtual QByteArray decode (const QByteArray &src, NewlineType newline=NewlineLF) const
 
virtual bool encode (const char *&scursor, const char *const send, char *&dcursor, const char *const dend, NewlineType newline=NewlineLF) const
 
virtual QByteArray encode (const QByteArray &src, NewlineType newline=NewlineLF) const
 

Additional Inherited Members

- Public Types inherited from KCodecs::Codec
enum  NewlineType { NewlineLF, NewlineCRLF }
 
- Static Public Member Functions inherited from KCodecs::Codec
static CodeccodecForName (const char *name)
 
static CodeccodecForName (const QByteArray &name)
 
- Protected Member Functions inherited from KCodecs::Codec
 Codec ()
 

Detailed Description

A class representing the codec for Base64 as specified in RFC2045.

Definition at line 49 of file kcodecsbase64.h.

Constructor & Destructor Documentation

KCodecs::Base64Codec::Base64Codec ( )
inline

Constructs a Base64 codec.

Definition at line 55 of file kcodecsbase64.h.

KCodecs::Base64Codec::~Base64Codec ( )
inlineoverride

Destroys the codec.

Definition at line 62 of file kcodecsbase64.h.

Member Function Documentation

Decoder * KCodecs::Base64Codec::makeDecoder ( Codec::NewlineType  newline = Codec::NewlineLF) const
overridevirtual

Codec::makeDecoder()

Implements KCodecs::Codec.

Definition at line 155 of file kcodecsbase64.cpp.

Encoder * KCodecs::Base64Codec::makeEncoder ( Codec::NewlineType  newline = Codec::NewlineLF) const
overridevirtual

Codec::makeEncoder()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 150 of file kcodecsbase64.cpp.

int KCodecs::Base64Codec::maxDecodedSizeFor ( int  insize,
NewlineType  newline = Codec::NewlineLF 
) const
inlineoverridevirtual

Codec::maxDecodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 93 of file kcodecsbase64.h.

int KCodecs::Base64Codec::maxEncodedSizeFor ( int  insize,
NewlineType  newline 
) const
inlineoverridevirtual

Codec::maxEncodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 77 of file kcodecsbase64.h.

const char* KCodecs::Base64Codec::name ( ) const
inlineoverridevirtual

Codec::name()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 68 of file kcodecsbase64.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 14 2020 22:43:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.