blob: 93094671f53b3107f691738fdf121773626b3aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.InteropServices;
namespace HFATest
{
[StructLayout(LayoutKind.Sequential)]
public struct HFA01
{
public float f1;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA02
{
public HFA01 hfa01;
public float f2;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA03
{
public HFA01 hfa01;
public HFA02 hfa02;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA05
{
public HFA02 hfa02;
public HFA03 hfa03;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA08
{
public HFA03 hfa03;
public HFA05 hfa05;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA11
{
public HFA03 hfa03;
public HFA08 hfa08;
}
[StructLayout(LayoutKind.Sequential)]
public struct HFA19
{
public HFA08 hfa08;
public HFA11 hfa11;
}
}
|