@ -393,7 +393,7 @@ public:
return false;
if(d->length+sizeof(T) >= d->allocated)
Allocate((d->length+sizeof(T)) * 2);
(*(T *)(d->object + d->length)) = what;
(*(T *)( (uint64_t)d->object + d->length)) = what;
d->length += sizeof(T);
}
Bytestreamdata * d;
@ -59,6 +59,7 @@ public:
virtual bool AcquireOffset(DFHack::VersionInfo * vinfo)
{
vinfo->getOffset(full_offset_name);
return true;
virtual uint32_t Length() = 0;
virtual uint64_t getAbsolute(){if(parent) return parent->getAbsolute() + offset; else return offset;};