Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 490 Bytes
#ifndef BINARY_H_
#define BINARY_H_
#include <stdio.h>
class Binary {
public:
Binary(int fd, char* p, size_t sz, size_t msz);
char* head;
size_t size;
char* mapped_head;
size_t mapped_size;
const char* debug_info;
const char* debug_abbrev;
const char* debug_str;
size_t debug_info_len;
size_t debug_abbrev_len;
size_t debug_str_len;
bool is_zipped;
size_t reduced_size;
protected:
int fd_;
};
Binary* readBinary(const char* filename);
#endif // BINARY_H_