fix: doing wrong alignment on dynamic filling

This commit is contained in:
Jan
2025-06-04 18:08:23 +01:00
parent 7225c40f7e
commit 919a0c4fd2
4 changed files with 44 additions and 7 deletions

View File

@ -11,6 +11,8 @@
#include <type_traits>
#include <vector>
#define DEBUG_OFFSETS 1
class ZoneStreamFillReadAccessor
{
public:
@ -170,6 +172,10 @@ public:
return static_cast<T*>(ConvertOffsetToAliasLookup(static_cast<const void*>(offset)));
}
#ifdef DEBUG_OFFSETS
virtual void DebugOffsets(size_t assetIndex) const = 0;
#endif
static std::unique_ptr<ZoneInputStream> Create(
unsigned pointerBitCount, unsigned blockBitCount, std::vector<XBlock*>& blocks, block_t insertBlock, ILoadingStream& stream, MemoryManager& memory);
};