Exemplo n.º 1
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt32(Selector);
            if ((Selector == 1))
            {
                m.WriteEmpty(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteEmpty(Arm_2);
                goto done;
            }
            if ((Selector == 3))
            {
                m.WriteGuid(Arm_3);
                goto done;
            }
            if ((Selector == 4))
            {
                m.WriteGuid(Arm_4);
                goto done;
            }
            if ((Selector == 5))
            {
                m.Write_3(Arm_5);
                goto done;
            }
            if ((Selector == 6))
            {
                m.Write_3(Arm_6);
                goto done;
            }
            if ((Selector == 7))
            {
                m.WriteEmpty(Arm_7);
                goto done;
            }
            if ((Selector == 8))
            {
                m.WriteEmpty(Arm_8);
                goto done;
            }
            if ((Selector == 9))
            {
                m.WriteGuid(Arm_9);
                goto done;
            }
            if ((Selector == 10))
            {
                m.Write_7(Arm_10);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_2");
done:
            return;
        }
Exemplo n.º 2
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteEnum16(Selector);
            if ((Selector == 1))
            {
                m.Write_2(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.Write_3(Arm_2);
                goto done;
            }
            if ((Selector == 3))
            {
                m.Write_4(Arm_3);
                goto done;
            }
            if ((Selector == 4))
            {
                m.Write_2(Arm_4);
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt16(Selector);
            if ((Selector == 1))
            {
                m.WriteInt32(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteDouble(Arm_2);
                goto done;
            }
            if ((Selector == 3))
            {
                m.WriteDouble(Arm_3);
                goto done;
            }
            if ((Selector == 4))
            {
                m.Write_3(Arm_4);
                goto done;
            }
            if ((Selector == 0))
            {
                m.WriteEmpty(Arm_0);
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_7");
done:
            return;
        }
Exemplo n.º 4
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt32(Selector);
            if ((Selector == 1))
            {
                m.WriteEmpty(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteEmbeddedPointer <Struct_4>(Arm_2, new System.Action <Struct_4>(m.Write_4));
                goto done;
            }
            if ((Selector == 3))
            {
                m.WriteEmbeddedPointer <Struct_5>(Arm_3, new System.Action <Struct_5>(m.Write_5));
                goto done;
            }
            if ((Selector == 4))
            {
                m.WriteEmbeddedPointer <Struct_6>(Arm_4, new System.Action <Struct_6>(m.Write_6));
                goto done;
            }
            throw new System.ArgumentException("No matching union selector when marshaling Union_3");
done:
            return;
        }
Exemplo n.º 5
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt32(Selector);
            if ((Selector == 1))
            {
                m.Write_6(Arm_1);
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
Exemplo n.º 6
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteInt32(Selector);
            if ((Selector == 0))
            {
                m.WriteInt32(Arm_0);
                goto done;
            }
            if ((Selector == 1))
            {
                m.WriteSByte(Arm_1);
                goto done;
            }
            if ((Selector == 2))
            {
                m.WriteInt32(Arm_2);
                goto done;
            }
            if ((Selector == 4))
            {
                m.WriteEmbeddedPointer <string>(Arm_4, new System.Action <string>(m.WriteTerminatedString));
                goto done;
            }
            if ((Selector == 3))
            {
                m.Write_3(Arm_3);
                goto done;
            }
            if ((Selector == 5))
            {
                m.Write_4(Arm_5);
                goto done;
            }
            if ((Selector == 6))
            {
                m.Write_5(Arm_6);
                goto done;
            }
            if ((Selector == 7))
            {
                m.Write_6(Arm_7);
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
Exemplo n.º 7
0
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteEnum16(Selector);
            if ((Selector == 2))
            {
                m.WriteByte(Arm_2);
                goto done;
            }
            if ((Selector == 1))
            {
                m.Write_15(Arm_1);
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteEnum16(Selector);
            if ((Selector == 2))
            {
                m.WriteInt32(Arm_2);
                goto done;
            }
            if ((Selector == 1))
            {
                m.WriteEmbeddedPointer <string>(Arm_1, new System.Action <string>(m.WriteTerminatedString));
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteUInt32(Selector);
            if ((Selector == 100))
            {
                m.WriteEmbeddedPointer <Struct_10>(Arm_100, new System.Action <Struct_10>(m.Write_10));
                goto done;
            }
            if ((Selector == 101))
            {
                m.WriteEmbeddedPointer <Struct_12>(Arm_101, new System.Action <Struct_12>(m.Write_12));
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }
        private void Marshal(_Marshal_Helper m)
        {
            m.WriteEnum16(Selector);
            if ((Selector == 3))
            {
                m.WriteInt32(Arm_3);
                goto done;
            }
            if ((Selector == 5))
            {
                m.WriteInt32(Arm_5);
                goto done;
            }
            if ((Selector == 4))
            {
                m.WriteInt32(Arm_4);
                goto done;
            }
            m.WriteEmpty(Arm_Default);
done:
            return;
        }