QXPDeobfuscator.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libqxp project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef QXPDEOBFUSCATOR_H_INCLUDED
#define QXPDEOBFUSCATOR_H_INCLUDED
#include "libqxp_utils.h"
namespace libqxp
{
class QXPDeobfuscator
{
public:
uint16_t operator()(uint16_t value) const;
uint8_t operator()(uint8_t value) const;
protected:
uint16_t m_seed;
explicit QXPDeobfuscator(uint16_t seed);
};
}
#endif // QXPDEOBFUSCATOR_H_INCLUDED
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libqxp::QXPDeobfuscator::QXPDeobfuscator
QXPDeobfuscator(uint16_t seed)
Definition QXPDeobfuscator.cpp:15
libqxp::QXPDeobfuscator::m_seed
uint16_t m_seed
Definition QXPDeobfuscator.h:25
libqxp::QXPDeobfuscator::operator()
uint16_t operator()(uint16_t value) const
Definition QXPDeobfuscator.cpp:20
libqxp_utils.h
libqxp
Definition libqxp_utils.cpp:25