This commit is contained in:
Perfare 2021-12-18 10:35:10 +08:00
parent 43ff0f23c1
commit 9f03520f50

View file

@ -46,8 +46,7 @@ namespace Il2CppDumper
public WebAssemblyMemory CreateMemory()
{
var last = dataSections[dataSections.Length - 1];
var stream = new MemoryStream((int)last.Offset + last.Data.Length);
var stream = new MemoryStream(new byte[Length]);
foreach (var dataSection in dataSections)
{
stream.Position = dataSection.Offset;