Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htxbe.cc File Reference

#include "log.h"
#include "htendian.h"
#include "htxbe.h"
#include "htxbehead.h"
#include "htxbeimg.h"
#include "stream.h"
#include "tools.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

bool xbe_rva_to_ofs (xbe_section_headers *section_headers, RVA rva, FILEOFS *ofs)
bool xbe_rva_to_section (xbe_section_headers *section_headers, RVA rva, int *section)
bool xbe_rva_is_valid (xbe_section_headers *section_headers, RVA rva)
bool xbe_rva_is_physical (xbe_section_headers *section_headers, RVA rva)
bool xbe_ofs_to_rva (xbe_section_headers *section_headers, FILEOFS ofs, RVA *rva)
bool xbe_ofs_to_section (xbe_section_headers *section_headers, FILEOFS ofs, int *section)
bool xbe_ofs_to_rva_and_section (xbe_section_headers *section_headers, FILEOFS ofs, RVA *rva, int *section)
bool xbe_ofs_is_valid (xbe_section_headers *section_headers, FILEOFS ofs)
bool xbe_section_name_to_section (xbe_section_headers *section_headers, const char *name, int *section)

Variables

format_viewer_if htxbe_if


Function Documentation

bool xbe_ofs_is_valid xbe_section_headers section_headers,
FILEOFS  ofs
 

Definition at line 285 of file htxbe.cc.

References FILEOFS, RVA, and xbe_ofs_to_rva().

bool xbe_ofs_to_rva xbe_section_headers section_headers,
FILEOFS  ofs,
RVA rva
 

Definition at line 248 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::fileofsToAddress(), xbe_ofs_is_valid(), and xbe_ofs_to_rva_and_section().

bool xbe_ofs_to_rva_and_section xbe_section_headers section_headers,
FILEOFS  ofs,
RVA rva,
int *  section
 

Definition at line 276 of file htxbe.cc.

References FILEOFS, RVA, xbe_ofs_to_rva(), and xbe_ofs_to_section().

bool xbe_ofs_to_section xbe_section_headers section_headers,
FILEOFS  ofs,
int *  section
 

Definition at line 262 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, xbe_section_headers::sections, and UINT.

Referenced by xbe_ofs_to_rva_and_section().

bool xbe_rva_is_physical xbe_section_headers section_headers,
RVA  rva
 

Definition at line 230 of file htxbe.cc.

References xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::validAddress().

bool xbe_rva_is_valid xbe_section_headers section_headers,
RVA  rva
 

Definition at line 217 of file htxbe.cc.

References MAX, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::getSegmentNameByAddress().

bool xbe_rva_to_ofs xbe_section_headers section_headers,
RVA  rva,
FILEOFS ofs
 

Definition at line 187 of file htxbe.cc.

References FILEOFS, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::addressToFileofs().

bool xbe_rva_to_section xbe_section_headers section_headers,
RVA  rva,
int *  section
 

Definition at line 202 of file htxbe.cc.

References MAX, xbe_section_headers::number_of_sections, RVA, xbe_section_headers::sections, and UINT.

Referenced by XBEAnalyser::getSegmentNameByAddress(), and XBEAnalyser::validAddress().

bool xbe_section_name_to_section xbe_section_headers section_headers,
const char *  name,
int *  section
 

Definition at line 295 of file htxbe.cc.

References xbe_section_headers::number_of_sections, xbe_section_headers::sections, and UINT.


Variable Documentation

format_viewer_if htxbe_if
 

Initial value:

 {
        htxbe_init,
        0
}

Definition at line 53 of file htxbe.cc.


Generated on Fri May 7 21:15:50 2004 by doxygen 1.3.5