Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
fs_utils.hpp
Go to the documentation of this file.
1#ifndef ARION_FS_UTILS_HPP
2#define ARION_FS_UTILS_HPP
3
5#include <functional>
6#include <string>
7
8namespace arion
9{
10
12using RD_BIN_CALLBACK = std::function<void(std::array<BYTE, ARION_BUF_SZ> buf, ADDR off, size_t sz)>;
13
22void read_bin_file(std::string file_path, ADDR off, size_t sz, RD_BIN_CALLBACK callback);
27std::string gen_tmp_path();
33std::string md5_hash_file(std::string file_path);
40bool check_fd_status(int fd, short int &revents);
41
42} // namespace arion
43
44#endif // ARION_FS_UTILS_HPP
Definition arch_x86-64.hpp:11
bool check_fd_status(int fd, short int &revents)
uint64_t ADDR
Identifies a memory address.
Definition global_defs.hpp:36
std::string md5_hash_file(std::string file_path)
std::string gen_tmp_path()
std::function< void(std::array< BYTE, ARION_BUF_SZ > buf, ADDR off, size_t sz)> RD_BIN_CALLBACK
Callback type used for processing chunks of binary data read from a file.
Definition fs_utils.hpp:12
void read_bin_file(std::string file_path, ADDR off, size_t sz, RD_BIN_CALLBACK callback)