File indexing completed on 2024-10-06 12:16:34

0001 /*
0002     SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #ifndef KCODECS_P_H
0008 #define KCODECS_P_H
0009 
0010 #include "kcodecs.h"
0011 
0012 namespace KCodecs
0013 {
0014 class EncoderPrivate
0015 {
0016 public:
0017     explicit EncoderPrivate(Codec::NewlineType newline);
0018 
0019     /**
0020       An output buffer to simplify some codecs.
0021       Used with write() and flushOutputBuffer().
0022     */
0023     char outputBuffer[Encoder::maxBufferedChars];
0024 
0025     uchar outputBufferCursor;
0026     const Codec::NewlineType newline;
0027 };
0028 
0029 class DecoderPrivate
0030 {
0031 public:
0032     explicit DecoderPrivate(Codec::NewlineType newline);
0033 
0034     const Codec::NewlineType newline;
0035 };
0036 
0037 }
0038 
0039 #endif // KCODECS_P_H