plain uint arrays

This commit is contained in:
Garry Newman 2020-02-19 09:11:36 +00:00
parent d42c510f6e
commit a605bc683d

View File

@ -136,6 +136,13 @@ namespace Generator
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]" );
}
if ( t.StartsWith( "uint " ) && t.Contains( "[" ) )
{
var num = t.Replace( "uint", "" ).Trim( '[', ']', ' ' );
t = $"uint[]";
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.U4)]" );
}
if ( t.StartsWith( "float " ) && t.Contains( "[" ) )
{
var num = t.Replace( "float", "" ).Trim( '[', ']', ' ' );