coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

ObjectFileCode Class Reference

The class ObjectFileCode contains the code of a program, it also contains all module internal data (like contants which didn't fit into the code itself). More...

#include <ObjectFileImp.h>

Inheritance diagram for ObjectFileCode

Inheritance graph
[legend]
Collaboration diagram for ObjectFileCode:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DataChunk inherited

Public Methods

 ObjectFileCode ()
 ObjectFileCode (unsigned long total_size)
 ~ObjectFileCode ()
void reserveCode (unsigned long size) throw (bad_alloc)
void appendCode (unsigned long size,const void *src) throw (bad_alloc)
void setCode (unsigned long offset,unsigned long size,const void *src) throw (bad_alloc)
void getCode (unsigned long offset,unsigned long size,void *dst)const
const void* getCodeBase ()const throw ()
unsigned long getStartAddress ()const throw ()
void setStartAddress (unsigned long address) throw ()
unsigned long getSize ()const throw ()
unsigned long getReserved ()const throw ()
virtual unsigned long getStreamSize ()
virtual unsigned long getStreamChunk ()
virtual void write (OutputStreamWriterNDR &os)
virtual void read (InputStreamWriterNDR &is)

Protected Attributes

unsigned char* m_pData
unsigned long m_nSize
unsigned long m_nStartAddress
unsigned long m_nReserved

Detailed Description

The class ObjectFileCode contains the code of a program, it also contains all module internal data (like contants which didn't fit into the code itself).

ObjectFile -- CODE (1 per file, mandatory) \begin{verbatim} Offset Size Type Comment --------------------------------------------------------- 0 4 Byte fourcc 'CODE' 4 4 Byte int32 size of the chunk 8 4 Byte int32 code baseaddress (reserved: 0) 12 4 Byte int32 code startaddress 16 4 Byte int32 size of vm code following 24 x Byte byte Virtual Machine Code --------------------------------------------------------- \end{verbatim}


The documentation for this class was generated from the following file:
  • ObjectFileImp.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: