Hi, after upgrading from 0.0.11 to 0.0.12, I found that the generated code for structs seem to be incorrect. I've created a minimal repro here - master branch is on 0.0.11 and generator-0.0.12 branch on 0.0.12.
It seems to be missing out the last field in structs, like these methods from ReaderExtensions:
// Should be (ObjectPath, byte[], byte[], string)
public static (ObjectPath, byte[], byte[]) ReadStruct_roayaysz(this ref Reader reader)
{
reader.AlignStruct();
return ValueTuple.Create(reader.ReadObjectPath(), reader.ReadArray_ay(), reader.ReadArray_ay());
}
// Should be (ObjectPath, byte[], byte[])
public static (ObjectPath, byte[]) ReadStruct_roayayz(this ref Reader reader)
{
reader.AlignStruct();
return ValueTuple.Create(reader.ReadObjectPath(), reader.ReadArray_ay());
}
Hi, after upgrading from 0.0.11 to 0.0.12, I found that the generated code for structs seem to be incorrect. I've created a minimal repro here -
master
branch is on 0.0.11 andgenerator-0.0.12
branch on 0.0.12.It seems to be missing out the last field in structs, like these methods from
ReaderExtensions
: