#endregion
#region methods for S8 struct
- public static S8 NewS8(string name, bool gender, UInt16 jobNum, int i32, uint ui32, sbyte mySByte)
+ public static S8 NewS8(string name, string fullName, bool gender, UInt16 jobNum, int i32, uint ui32, sbyte mySByte)
{
S8 s8 = new S8();
s8.name = name;
+ s8.fullName = fullName;
s8.gender = gender;
s8.i32 = i32;
s8.ui32 = ui32;
public static void PrintS8(S8 str1, string name)
{
Console.WriteLine("\t{0}.name = {1}", name, str1.name);
+ Console.WriteLine("\t{0}.fullName = {1}", name, str1.fullName);
Console.WriteLine("\t{0}.gender = {1}", name, str1.gender);
Console.WriteLine("\t{0}.jobNum = {1}", name, str1.jobNum);
Console.WriteLine("\t{0}.i32 = {1}", name, str1.i32);
}
public static bool ValidateS8(S8 str1, S8 str2, string methodName)
{
- if (str1.name != str2.name || str1.gender != str2.gender ||
+ if (str1.name != str2.name || str1.fullName != str2.fullName || str1.gender != str2.gender ||
str1.jobNum != str2.jobNum ||
str1.i32 != str2.i32 || str1.ui32 != str2.ui32 || str1.mySByte != str2.mySByte)
{
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 cloneS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 cloneS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByVal11...");
if (!MarshalStructAsParam_AsSeqByVal11(sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 changeS8 = Helper.NewS8("world", false, 1, 256, 256, 64);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 changeS8 = Helper.NewS8("world", "HelloWorldAgain", false, 1, 256, 256, 64);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByRef11...");
if (!MarshalStructAsParam_AsSeqByRef11(ref sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 cloneS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 cloneS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByValIn11...");
if (!MarshalStructAsParam_AsSeqByValIn11(sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 cloneS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 cloneS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByRefIn11...");
if (!MarshalStructAsParam_AsSeqByRefIn11(ref sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 cloneS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 cloneS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByValOut11...");
if (!MarshalStructAsParam_AsSeqByValOut11(sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 changeS8 = Helper.NewS8("world", false, 1, 256, 256, 64);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 changeS8 = Helper.NewS8("world", "HelloWorldAgain", false, 1, 256, 256, 64);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByRefOut11...");
if (!MarshalStructAsParam_AsSeqByRefOut11(out sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 cloneS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 cloneS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByValInOut11...");
if (!MarshalStructAsParam_AsSeqByValInOut11(sourceS8))
}
break;
case StructID.S8Id:
- S8 sourceS8 = Helper.NewS8("hello", true, 10, 128, 128, 32);
- S8 changeS8 = Helper.NewS8("world", false, 1, 256, 256, 64);
+ S8 sourceS8 = Helper.NewS8("hello", null, true, 10, 128, 128, 32);
+ S8 changeS8 = Helper.NewS8("world", "HelloWorldAgain", false, 1, 256, 256, 64);
Console.WriteLine("\tCalling MarshalStructAsParam_AsSeqByRefInOut11...");
if (!MarshalStructAsParam_AsSeqByRefInOut11(ref sourceS8))
}
-
\ No newline at end of file
+