private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadInt32();
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.ReadDouble();
                goto done;
            }
            if ((Selector == 3))
            {
                Arm_3 = u.ReadDouble();
                goto done;
            }
            if ((Selector == 4))
            {
                Arm_4 = u.Read_3();
                goto done;
            }
            if ((Selector == 0))
            {
                Arm_0 = u.ReadEmpty();
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_7");
done:
            return;
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 6))
            {
                Arm_6 = u.ReadInt64();
                goto done;
            }
            if ((Selector == 3))
            {
                Arm_3 = u.Read_18();
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_18");
done:
            return;
        }
Beispiel #3
0
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 0))
            {
                Arm_0 = u.ReadEmbeddedPointer <Struct_2>(new System.Func <Struct_2>(u.Read_2), false);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_1");
done:
            return;
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 19))
            {
                Arm_19 = u.ReadInt32();
                goto done;
            }
            if ((Selector == 8))
            {
                Arm_8 = u.Read_3();
                goto done;
            }
            if ((Selector == 0))
            {
                Arm_0 = u.ReadInt32();
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_2");
done:
            return;
        }
        private void Unmarshal(_Unmarshal_Helper u)
        {
            Selector = u.ReadUInt16();
            if ((Selector == 1))
            {
                Arm_1 = u.ReadEmbeddedPointer <Struct_11>(new System.Func <Struct_11>(u.Read_10), true);
                goto done;
            }
            if ((Selector == 2))
            {
                Arm_2 = u.ReadEmbeddedPointer <Struct_13>(new System.Func <Struct_13>(u.Read_12), true);
                goto done;
            }
            if ((Selector == 3))
            {
                Arm_3 = u.ReadEmbeddedPointer <Struct_13>(new System.Func <Struct_13>(u.Read_12), true);
                goto done;
            }
            if ((Selector == 12))
            {
                Arm_12 = u.ReadEmbeddedPointer <Struct_13>(new System.Func <Struct_13>(u.Read_12), true);
                goto done;
            }
            if ((Selector == 13))
            {
                Arm_13 = u.ReadEmbeddedPointer <Struct_14>(new System.Func <Struct_14>(u.Read_13), true);
                goto done;
            }
            if ((Selector == 14))
            {
                Arm_14 = u.ReadEmbeddedPointer <Struct_14>(new System.Func <Struct_14>(u.Read_13), true);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_10");
done:
            return;
        }