Tests: Update ArraysAndPointers and Properties

This commit is contained in:
Katy Coe
2019-11-10 18:57:21 +01:00
parent 5bf6e2c7c3
commit b1b21b9e5a
6 changed files with 131 additions and 35 deletions

View File

@@ -1,8 +1,9 @@
// Image 0: mscorlib.dll - 0
// Image 1: ArraysAndPointers.dll - 1810
// Namespace: Il2CppTests.TestSources
internal class Test // TypeDefIndex: 1811
internal class Test // TypeDefIndex: 1813
{
// Fields
private int[] foo; // 0x08
@@ -10,25 +11,46 @@ internal class Test // TypeDefIndex: 1811
private float[][] arrayOfArrays; // 0x10
private float[,] twoDimensionalArray; // 0x14
private float[,,] threeDimensionalArray; // 0x18
private int*[] arrayOfPointer; // 0x1C
private int** pointerToPointer; // 0x20
private float*[][,,][] confusedElephant; // 0x24
private unsafe int*[] arrayOfPointer; // 0x1C
private unsafe int** pointerToPointer; // 0x20
private unsafe float*[][,,][] confusedElephant; // 0x24
// Properties
public unsafe int* PointerProperty { get; set; } // 0x00562EEC 0x00562EF4
public unsafe int* this[int i] { get; } // 0x00562F10
public unsafe int this[int* p] { get; } // 0x00562F18
public unsafe float* this[float* fp] { get; } // 0x00562F20
// Nested types
private struct fixedSizeArrayStruct // TypeDefIndex: 1812
private struct fixedSizeArrayStruct // TypeDefIndex: 1814
{
// Fields
private fixed /* 0x000A6CAC */ int fixedSizeArray[0]; // 0x08
private unsafe fixed /* 0x000A6C98 */ int fixedSizeArray[0]; // 0x08
// Nested types
}
public unsafe delegate void OnUnsafe(int* ud); // TypeDefIndex: 1816; 0x00562F3C
public class NestedUnsafe<T> // TypeDefIndex: 1817
{
// Constructors
public NestedUnsafe();
// Methods
private unsafe T* UnsafeGenericReturn();
private unsafe void UnsafeGenericMethod(T* pt);
}
// Constructors
public Test(); // 0x00562BA0
public unsafe Test(int* u); // 0x00562E78
// Methods
public int[] FooMethod(int[][] bar); // 0x00562AC8
public int[,] BarMethod(int[,,] baz); // 0x00562B28
public int[] FooMethod(int[][] bar); // 0x00562DA0
public int[,] BarMethod(int[,,] baz); // 0x00562E00
public unsafe void UnsafeMethod(int* unsafePointerArgument); // 0x00562EFC
public unsafe int* UnsafeReturnMethod(); // 0x00562F00
public unsafe int* UnsafeMethod2(int* i); // 0x00562F08
}