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

BinaryInputFile Class Reference

#include <BinaryFile.h>

List of all members.

Public Member Functions

 BinaryInputFile ()
 ~BinaryInputFile ()
void readFileInMemory (char *f)
char * copyBytes (void *buff, uint32_t bytes)
char * copyBytesIterate (void *buff, uint32_t bytes)
char * onlyIterate (uint32_t bytes)
char * moreBytes ()
char * fileOffsetToPointer (uint64_t fileOffset)
char * setInBufferPointer (uint64_t fileOffset)
char * isInBuffer (char *f)
char * setInPointer (char *f)
char * inPtrBase ()
uint32_t alreadyRead ()
uint32_t bytesLeftInBuffer ()
uint32_t getSize ()
uint32_t currentOffset ()

Private Attributes

char * inBufferPointer
uint32_t inBufferSize
char * inBuffer


Constructor & Destructor Documentation

BinaryInputFile::BinaryInputFile  )  [inline]
 

Definition at line 12 of file BinaryFile.h.

References inBuffer, inBufferPointer, and inBufferSize.

BinaryInputFile::~BinaryInputFile  )  [inline]
 

Definition at line 13 of file BinaryFile.h.


Member Function Documentation

uint32_t BinaryInputFile::alreadyRead  )  [inline]
 

Definition at line 30 of file BinaryFile.h.

References inBuffer, and inBufferPointer.

Referenced by XCoffFile::readAuxilaryHeader(), XCoffFile::readFileHeader(), and XCoffFile::readSectionHeaders().

uint32_t BinaryInputFile::bytesLeftInBuffer  ) 
 

Definition at line 133 of file BinaryFile.C.

References inBuffer, inBufferPointer, and inBufferSize.

Referenced by StringTable::read().

char * BinaryInputFile::copyBytes void *  buff,
uint32_t  bytes
 

Definition at line 46 of file BinaryFile.C.

References inBuffer, inBufferPointer, inBufferSize, and PRINT_DEBUG.

Referenced by copyBytesIterate(), XCoffFile::parse(), and StringTable::read().

char * BinaryInputFile::copyBytesIterate void *  buff,
uint32_t  bytes
 

Definition at line 65 of file BinaryFile.C.

References copyBytes(), and inBufferPointer.

Referenced by SymbolTable::newSymbol(), SectHeader64::read(), SectHeader32::read(), RelocationTable::read(), LoaderSection::read(), ExceptionSection::read(), LineInfoTable::read(), FileHeader64::read(), FileHeader32::read(), AOutHeader64::read(), and AOutHeader32::read().

uint32_t BinaryInputFile::currentOffset  )  [inline]
 

Definition at line 35 of file BinaryFile.h.

References inBuffer, and inBufferPointer.

Referenced by SymbolTable::read(), StringTable::read(), SectHeader64::read(), SectHeader32::read(), RelocationTable::read(), LoaderSection::read(), ExceptionSection::read(), RawSection::read(), LineInfoTable::read(), FileHeader64::read(), FileHeader32::read(), AOutHeader64::read(), and AOutHeader32::read().

char * BinaryInputFile::fileOffsetToPointer uint64_t  fileOffset  ) 
 

Definition at line 97 of file BinaryFile.C.

References inBuffer, and inBufferSize.

Referenced by SectHeader::initFilePointers(), FileHeader::initFilePointers(), and setInBufferPointer().

uint32_t BinaryInputFile::getSize  )  [inline]
 

Definition at line 33 of file BinaryFile.h.

References inBufferSize.

Referenced by XCoffFile::getFileSize().

char* BinaryInputFile::inPtrBase  )  [inline]
 

Definition at line 28 of file BinaryFile.h.

References inBuffer.

Referenced by SymbolTable::read().

char * BinaryInputFile::isInBuffer char *  f  ) 
 

Definition at line 115 of file BinaryFile.C.

References inBuffer, and inBufferSize.

Referenced by XCoffFile::readSymbolStringTable(), and setInPointer().

char * BinaryInputFile::moreBytes  ) 
 

Definition at line 88 of file BinaryFile.C.

References inBuffer, inBufferPointer, and inBufferSize.

char * BinaryInputFile::onlyIterate uint32_t  bytes  ) 
 

Definition at line 76 of file BinaryFile.C.

References inBuffer, inBufferPointer, and inBufferSize.

void BinaryInputFile::readFileInMemory char *  f  ) 
 

Definition at line 6 of file BinaryFile.C.

References inBuffer, inBufferPointer, inBufferSize, PRINT_ERROR, and PRINT_INFOR.

Referenced by XCoffFile::parse().

char * BinaryInputFile::setInBufferPointer uint64_t  fileOffset  ) 
 

Definition at line 107 of file BinaryFile.C.

References fileOffsetToPointer(), and inBufferPointer.

char * BinaryInputFile::setInPointer char *  f  ) 
 

Definition at line 124 of file BinaryFile.C.

References inBufferPointer, and isInBuffer().

Referenced by SymbolTable::read(), StringTable::read(), RelocationTable::read(), LoaderSection::read(), ExceptionSection::read(), RawSection::read(), and LineInfoTable::read().


Member Data Documentation

char* BinaryInputFile::inBuffer [private]
 

Definition at line 10 of file BinaryFile.h.

Referenced by alreadyRead(), BinaryInputFile(), bytesLeftInBuffer(), copyBytes(), currentOffset(), fileOffsetToPointer(), inPtrBase(), isInBuffer(), moreBytes(), onlyIterate(), and readFileInMemory().

char* BinaryInputFile::inBufferPointer [private]
 

Definition at line 8 of file BinaryFile.h.

Referenced by alreadyRead(), BinaryInputFile(), bytesLeftInBuffer(), copyBytes(), copyBytesIterate(), currentOffset(), moreBytes(), onlyIterate(), readFileInMemory(), setInBufferPointer(), and setInPointer().

uint32_t BinaryInputFile::inBufferSize [private]
 

Definition at line 9 of file BinaryFile.h.

Referenced by BinaryInputFile(), bytesLeftInBuffer(), copyBytes(), fileOffsetToPointer(), getSize(), isInBuffer(), moreBytes(), onlyIterate(), and readFileInMemory().


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 11:08:37 2008 for PMaCInstrumentor by doxygen 1.3.5