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 | |
12 | namespace KCodecs |
13 | { |
14 | class EncoderPrivate |
15 | { |
16 | public: |
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 | |
29 | class DecoderPrivate |
30 | { |
31 | public: |
32 | explicit DecoderPrivate(Codec::NewlineType newline); |
33 | |
34 | const Codec::NewlineType newline; |
35 | }; |
36 | |
37 | } |
38 | |
39 | #endif // KCODECS_P_H |
40 | |