about summary refs log blame commit diff
path: root/src/include/utils.hpp
blob: 5c7cc39c90208c44b818ae5af597b25ac2b3bd6b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                       
#pragma once

#include <stdint.h>
#include <string.h>
#include <elf.h>

class Utils
{
public:
    static void findelf(uint8_t* buffer, uint64_t* textstart, uint64_t* textend);
    static void getbinaryrepresentation(uint8_t* bytes, size_t numbytes, uint8_t* buf);
    static uint8_t tobit(uint8_t byte, uint8_t pos);
};