Go to the documentation of this file.
50 using ReferenceManager::SafePointer;
51 using ReferenceManager::SectionKey;
52 using ReferenceManager::FileOffsetKey;
53 using ReferenceManager::SectionIndexKey;
107 bool undefASpaceWritten =
false;
109 for (
unsigned int i = 0; i < sect->
elementCount(); i++) {
116 if (
dynamic_cast<const ASpaceSection*
>(sect)->isUndefined(elem)) {
120 undefASpaceWritten =
true;
129 assert(undefASpaceWritten);
HalfWord SectionId
Type for storing binary file section ids.
virtual ~TPEFASpaceSectionWriter()
TPEFASpaceSectionWriter()
unsigned int writePosition()
static const TPEFASpaceSectionWriter instance_
An unique instance of class.
SectionId sectionId() const
virtual Section::SectionType type() const
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
#define assert(condition)
SectionElement * element(Word index) const
void writeElement(BinaryStream &stream, const ASpaceElement *elem, SectionId id, Word index) const
static void registerSectionWriter(const SectionWriter *sWriter)
static const Word elementSize_
The fixed size address space element.
static SectionKey sectionKeyFor(const SafePointable *obj)
virtual void actualWriteData(BinaryStream &stream, const Section *section) const
Word FileOffset
Type for storing absolute file offsets.
void writeByte(Byte byte)
static void setSize(const SafePointable *obj, Word size)
virtual Word elementSize(const Section *section) const
@ ST_ADDRSP
Address space section.
Word elementCount() const