Go to the documentation of this file.
49 using ReferenceManager::SafePointer;
50 using ReferenceManager::FileOffsetKey;
51 using ReferenceManager::SectionOffsetKey;
52 using ReferenceManager::SectionKey;
102 for (; sectOffset < dSection->
length(); sectOffset++) {
107 chunk = dSection->
chunk(sectOffset);
109 bool sectionToBeWrittenIsNotChunkable =
false;
110 assert(sectionToBeWrittenIsNotChunkable);
139 return static_cast<Word
>(
140 ceil(
static_cast<double>(section->
aSpace()->
MAU()) /
HalfWord SectionId
Type for storing binary file section ids.
TPEFDataSectionWriter(bool reg=true)
virtual Byte byte(const Chunk *chunk) const
ASpaceElement * aSpace() const
static bool isReferenced(const SafePointable *object)
virtual Section::SectionType type() const
unsigned int writePosition()
SectionId sectionId() const
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
virtual ~TPEFDataSectionWriter()
#define assert(condition)
static void registerSectionWriter(const SectionWriter *sWriter)
@ ST_DATA
Initialized data section.
static SectionKey sectionKeyFor(const SafePointable *obj)
Word FileOffset
Type for storing absolute file offsets.
void writeByte(Byte byte)
virtual Word elementSize(const Section *section) const
Word SectionOffset
Type for storing offsets relative to a given base offset value.
static void setSize(const SafePointable *obj, Word size)
virtual void actualWriteData(BinaryStream &stream, const Section *sect) const
virtual Word length() const
virtual Chunk * chunk(SectionOffset offset) const
static const TPEFDataSectionWriter instance_
Only existing instance of class.