1
0
mirror of synced 2024-12-01 18:57:18 +01:00
ImHex/include/views/view_hashes.hpp
2020-11-11 09:28:44 +01:00

28 lines
615 B
C++

#pragma once
#include "views/view.hpp"
#include <cstdio>
namespace hex {
namespace prv { class Provider; }
class ViewHashes : public View {
public:
explicit ViewHashes(prv::Provider* &dataProvider);
~ViewHashes() override;
void createView() override;
void createMenu() override;
private:
prv::Provider* &m_dataProvider;
bool m_windowOpen = true;
int m_currHashFunction = 0;
int m_hashStart = 0, m_hashEnd = 0;
static constexpr const char* HashFunctionNames[] = { "CRC16", "CRC32", "MD5", "SHA-1", "SHA-256" };
};
}