Go to the documentation of this file.
44 using ReferenceManager::SafePointer;
45 using ReferenceManager::SectionKey;
46 using ReferenceManager::SectionOffsetKey;
47 using ReferenceManager::FileOffsetKey;
91 assert(stringSection != NULL);
108 stringSection->
chunk(
109 stringSection->
length() - 1)) == 0);
111 for (
unsigned int i = 0; i < stringSection->
length(); i++) {
117 chunk = stringSection->
chunk(sectOffset);
119 bool sectionToBeWrittenIsNotChunkable =
false;
120 assert(sectionToBeWrittenIsNotChunkable);
HalfWord SectionId
Type for storing binary file section ids.
virtual Chunk * chunk(SectionOffset offset) const
virtual Byte byte(const Chunk *chunk) const
static bool isReferenced(const SafePointable *object)
unsigned int writePosition()
static const TPEFStringSectionWriter instance_
Unique instance of class.
SectionId sectionId() const
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
virtual void actualWriteData(BinaryStream &stream, const Section *sect) const
virtual Section::SectionType type() const
#define assert(condition)
static void registerSectionWriter(const SectionWriter *sWriter)
static SectionKey sectionKeyFor(const SafePointable *obj)
virtual ~TPEFStringSectionWriter()
Word FileOffset
Type for storing absolute file offsets.
virtual Word elementSize(const Section *section) const
void writeByte(Byte byte)
Word SectionOffset
Type for storing offsets relative to a given base offset value.
static void setSize(const SafePointable *obj, Word size)
TPEFStringSectionWriter()
virtual Word length() const
virtual Chunk * chunk(SectionOffset offset) const