46using ReferenceManager::SafePointer;
47using ReferenceManager::SectionIndexKey;
48using ReferenceManager::SectionOffsetKey;
98 assert(aSpaceSection != NULL);
100 std::set<Byte> alreadyUsedIds;
102 bool undefFound =
false;
111 while (elementStart +
header().elementSize <=
120 if (alreadyUsedIds.find(
id) != alreadyUsedIds.end()) {
121 bool twoASpaceElementsWithSameId =
false;
122 assert(twoASpaceElementsWithSameId);
124 alreadyUsedIds.insert(
id);
138 elem->
setName(CREATE_SAFEPOINTER(nameSectionOffset));
#define assert(condition)
void setName(const ReferenceManager::SafePointer *aName)
void setAlign(Byte aAlign)
void setWordSize(Byte aWordSize)
void setUndefinedASpace(ASpaceElement *aSpace)
void setReadPosition(unsigned int position)
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
SectionOffset offset() const
static void registerSectionReader(const SectionReader *sReader)
virtual void addElement(SectionElement *element)
@ ST_ADDRSP
Address space section.
virtual void readData(BinaryStream &stream, Section *section) const
virtual ~TPEFASpaceSectionReader()
TPEFASpaceSectionReader()
virtual Section::SectionType type() const
static TPEFASpaceSectionReader proto_
Prototype instance of TPEFASpaceSectionReader to be registered to SectionReader.
virtual BinaryReader * parent() const
virtual void readData(BinaryStream &stream, Section *section) const
static const Header & header()
Word SectionOffset
Type for storing offsets relative to a given base offset value.