KCodecs::IdentityCodec

KCodecs::IdentityCodec Class Reference

#include <kcodecsidentity.h>

Inheritance diagram for KCodecs::IdentityCodec:

Public Member Functions

 IdentityCodec ()
 
 ~IdentityCodec () override
 
QByteArray decode (const QByteArray &src, Codec::NewlineType newline=Codec::NewlineLF) const override
 
QByteArray encode (const QByteArray &src, Codec::NewlineType newline=Codec::NewlineLF) const override
 
DecodermakeDecoder (Codec::NewlineType newline=Codec::NewlineCRLF) const override
 
EncodermakeEncoder (Codec::NewlineType newline=Codec::NewlineCRLF) const override
 
int maxDecodedSizeFor (int insize, Codec::NewlineType newline) const override
 
int maxEncodedSizeFor (int insize, Codec::NewlineType newline=Codec::NewlineLF) 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 bool encode (const char *&scursor, const char *const send, char *&dcursor, const char *const dend, NewlineType newline=NewlineLF) const
 
virtual const char * name () const =0
 

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 Identify codec.

Definition at line 33 of file kcodecsidentity.h.

Constructor & Destructor Documentation

KCodecs::IdentityCodec::IdentityCodec ( )
inline

Constructs the Identity codec.

Definition at line 39 of file kcodecsidentity.h.

KCodecs::IdentityCodec::~IdentityCodec ( )
inlineoverride

Destroys the codec.

Definition at line 46 of file kcodecsidentity.h.

Member Function Documentation

QByteArray IdentityCodec::decode ( const QByteArray src,
Codec::NewlineType  newline = Codec::NewlineLF 
) const
overridevirtual

QByteArray Codec::decode()

Reimplemented from KCodecs::Codec.

Definition at line 95 of file kcodecsidentity.cpp.

QByteArray IdentityCodec::encode ( const QByteArray src,
Codec::NewlineType  newline = Codec::NewlineLF 
) const
overridevirtual

QByteArray Codec::encode()

Reimplemented from KCodecs::Codec.

Definition at line 87 of file kcodecsidentity.cpp.

Decoder * IdentityCodec::makeDecoder ( Codec::NewlineType  newline = Codec::NewlineCRLF) const
overridevirtual

Codec::makeDecoder()

Implements KCodecs::Codec.

Definition at line 66 of file kcodecsidentity.cpp.

Encoder * IdentityCodec::makeEncoder ( Codec::NewlineType  newline = Codec::NewlineCRLF) const
overridevirtual

Codec::makeEncoder()

Implements KCodecs::Codec.

Definition at line 61 of file kcodecsidentity.cpp.

int KCodecs::IdentityCodec::maxDecodedSizeFor ( int  insize,
Codec::NewlineType  newline 
) const
inlineoverridevirtual

Codec::maxDecodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::BinaryCodec.

Definition at line 80 of file kcodecsidentity.h.

int KCodecs::IdentityCodec::maxEncodedSizeFor ( int  insize,
Codec::NewlineType  newline = Codec::NewlineLF 
) const
inlineoverridevirtual

Codec::maxEncodedSizeFor()

Implements KCodecs::Codec.

Reimplemented in KCodecs::BinaryCodec.

Definition at line 67 of file kcodecsidentity.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 Sun Jul 12 2020 22:43:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.