Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PeSection Class Reference

#include <rva.h>

List of all members.

Public Methods

 PeSection ()
 PeSection (const PE_IMAGE_SECTION_HEADER &section)
void operator= (const PE_IMAGE_SECTION_HEADER &section)
bool IsCode () const

Public Attributes

uint32_t RvaSize
uint32_t RvaAddress
uint32_t RawSize
uint32_t RawAddress

Private Attributes

uint32_t Characteristics


Constructor & Destructor Documentation

PeSection::PeSection   [inline]
 

Definition at line 39 of file rva.h.

00039 {};

PeSection::PeSection const PE_IMAGE_SECTION_HEADER   section [inline]
 

Definition at line 40 of file rva.h.

00040 { *this = section; };


Member Function Documentation

bool PeSection::IsCode   const
 

Definition at line 42 of file rva.cpp.

References Characteristics, and IMAGE_SCN_CNT_CODE.

Referenced by ObjectModule::ObjectModule().

00043 {
00044   return (Characteristics & IMAGE_SCN_CNT_CODE) != 0;
00045 }

void PeSection::operator= const PE_IMAGE_SECTION_HEADER   section
 

Definition at line 33 of file rva.cpp.

References _PE_IMAGE_SECTION_HEADER::Characteristics, Characteristics, _PE_IMAGE_SECTION_HEADER::Misc, _PE_IMAGE_SECTION_HEADER::PointerToRawData, RawAddress, RawSize, RvaAddress, RvaSize, _PE_IMAGE_SECTION_HEADER::SizeOfRawData, and _PE_IMAGE_SECTION_HEADER::VirtualAddress.

00034 {
00035   RvaSize         = section.Misc.VirtualSize;
00036   RvaAddress      = section.VirtualAddress;
00037   RawSize         = section.SizeOfRawData;
00038   RawAddress      = section.PointerToRawData;
00039   Characteristics = section.Characteristics;
00040 }


Member Data Documentation

uint32_t PeSection::Characteristics [private]
 

Definition at line 48 of file rva.h.

Referenced by IsCode(), and operator=().

uint32_t PeSection::RawAddress
 

Definition at line 46 of file rva.h.

Referenced by CodeParser::ExcludeFileRange(), RVAFileTranslator::File2RVA(), ObjectModule::ObjectModule(), operator=(), RawDump(), and RVAFileTranslator::RVA2File().

uint32_t PeSection::RawSize
 

Definition at line 45 of file rva.h.

Referenced by CodeParser::ExcludeFileRange(), RVAFileTranslator::File2RVA(), ObjectModule::ObjectModule(), operator=(), and RawDump().

uint32_t PeSection::RvaAddress
 

Definition at line 44 of file rva.h.

Referenced by RVAFileTranslator::File2RVA(), ObjectModule::ObjectModule(), operator=(), RawDump(), and RVAFileTranslator::RVA2File().

uint32_t PeSection::RvaSize
 

Definition at line 43 of file rva.h.

Referenced by ObjectModule::ObjectModule(), operator=(), and RVAFileTranslator::RVA2File().


The documentation for this class was generated from the following files:
Generated on Mon Jan 13 22:20:36 2003 for perdr by doxygen1.2.15