Debian Codegraph @

src/lib/QXPDeobfuscator.h

raw
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libqxp project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef QXPDEOBFUSCATOR_H_INCLUDED
11 #define QXPDEOBFUSCATOR_H_INCLUDED
12
13 #include "libqxp_utils.h"
14
15 namespace libqxp
16 {
17
18 class QXPDeobfuscator
19 {
20 public:
21 uint16_t operator()(uint16_t value) const;
22 uint8_t operator()(uint8_t value) const;
23
24 protected:
25 uint16_t m_seed;
26
27 explicit QXPDeobfuscator(uint16_t seed);
28 };
29
30 }
31
32 #endif // QXPDEOBFUSCATOR_H_INCLUDED
33
34 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */