Go to the documentation of this file.
46 using ReferenceManager::SafePointer;
47 using ReferenceManager::SectionIndexKey;
48 using 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));
SectionOffset offset() const
void setReadPosition(unsigned int position)
void setAlign(Byte aAlign)
static TPEFASpaceSectionReader proto_
Prototype instance of TPEFASpaceSectionReader to be registered to SectionReader.
virtual Section::SectionType type() const
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
#define assert(condition)
virtual void addElement(SectionElement *element)
void setWordSize(Byte aWordSize)
static void registerSectionReader(const SectionReader *sReader)
TPEFASpaceSectionReader()
virtual BinaryReader * parent() const
Word SectionOffset
Type for storing offsets relative to a given base offset value.
virtual void readData(BinaryStream &stream, Section *section) const
virtual void readData(BinaryStream &stream, Section *section) const
virtual ~TPEFASpaceSectionReader()
void setName(const ReferenceManager::SafePointer *aName)
void setUndefinedASpace(ASpaceElement *aSpace)
@ ST_ADDRSP
Address space section.
static const Header & header()