KCodecs::Base64Codec

Search for usage in LXR

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
 
qsizetype maxDecodedSizeFor (qsizetype insize, NewlineType newline=Codec::NewlineLF) const override
 
qsizetype maxEncodedSizeFor (qsizetype 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
 
QByteArray decode (QByteArrayView 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
 
QByteArray encode (QByteArrayView 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 (QByteArrayView 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 48 of file kcodecsbase64.h.

Constructor & Destructor Documentation

◆ Base64Codec()

KCodecs::Base64Codec::Base64Codec ( )
inline

Constructs a Base64 codec.

Definition at line 54 of file kcodecsbase64.h.

◆ ~Base64Codec()

KCodecs::Base64Codec::~Base64Codec ( )
inlineoverride

Destroys the codec.

Definition at line 62 of file kcodecsbase64.h.

Member Function Documentation

◆ makeDecoder()

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

Codec::makeDecoder()

Implements KCodecs::Codec.

Definition at line 142 of file kcodecsbase64.cpp.

◆ makeEncoder()

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

Codec::makeEncoder()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 137 of file kcodecsbase64.cpp.

◆ maxDecodedSizeFor()

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

Codec::maxDecodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 95 of file kcodecsbase64.h.

◆ maxEncodedSizeFor()

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

Codec::maxEncodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 79 of file kcodecsbase64.h.

◆ name()

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

Codec::name()

Implements KCodecs::Codec.

Reimplemented in KCodecs::Rfc2047BEncodingCodec.

Definition at line 70 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.