1/*
2 SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#ifndef KCODECS_P_H
8#define KCODECS_P_H
9
10#include "kcodecs.h"
11
12namespace KCodecs
13{
14class EncoderPrivate
15{
16public:
17 explicit EncoderPrivate(Codec::NewlineType newline);
18
19 /**
20 An output buffer to simplify some codecs.
21 Used with write() and flushOutputBuffer().
22 */
23 char outputBuffer[Encoder::maxBufferedChars];
24
25 uchar outputBufferCursor;
26 const Codec::NewlineType newline;
27};
28
29class DecoderPrivate
30{
31public:
32 explicit DecoderPrivate(Codec::NewlineType newline);
33
34 const Codec::NewlineType newline;
35};
36
37}
38
39#endif // KCODECS_P_H
40

source code of kcodecs/src/kcodecs_p.h