Ejemplo n.º 1
0
        public void initWithDefaults()
        {
            BitString param_AttrBitStrDef =
                new BitString(CoderUtils.defStringToOctetString("'011'B"));

            AttrBitStrDef = param_AttrBitStrDef;
        }
Ejemplo n.º 2
0
            public void initWithDefaults()
            {
                ExtendedStatus param_ExtendedStatusMask =
                    new ExtendedStatus(CoderUtils.defStringToOctetString("'1111'B"));

                ExtendedStatusMask = param_ExtendedStatusMask;
            }
Ejemplo n.º 3
0
        /**
         * @see CoderUtils#defStringToOctetString(String)
         */
        public void testDefStringToOctetString()
        {
            BitString result = CoderUtils.defStringToOctetString("'FFAABBEE'H");

            ByteTools.checkBuffers(result.Value, new byte[] { (byte)0xFF, (byte)0xAA, (byte)0xBB, (byte)0xEE });

            result = CoderUtils.defStringToOctetString("'FFAABBEEC'H");
            ByteTools.checkBuffers(result.Value, new byte[] { (byte)0xFF, (byte)0xAA, (byte)0xBB, (byte)0xEE, (byte)0xC0 });

            result = CoderUtils.defStringToOctetString("'111100001111000010011001'B");
            ByteTools.checkBuffers(result.Value, new byte[] { (byte)0xF0, (byte)0xF0, (byte)0x99 });

            result = CoderUtils.defStringToOctetString("'1111000011110000100110011'B");
            ByteTools.checkBuffers(result.Value, new byte[] { (byte)0xF0, (byte)0xF0, (byte)0x99, (byte)0x80 });
        }
Ejemplo n.º 4
0
        public void initWithDefaults()
        {
            string param_WithDefault =
                "dd";

            WithDefault = param_WithDefault;
            long param_WithIntDef =
                120;

            WithIntDef = param_WithIntDef;
            WithSeqDefSequenceType param_WithSeqDef =

                new WithSeqDefSequenceType();

            {
                param_WithSeqDef.Name =
                    "Name"
                ;

                param_WithSeqDef.Email =
                    "Email"
                ;
            }
            ;
            WithSeqDef = param_WithSeqDef;
            TestOCT param_WithOctDef =
                new TestOCT(CoderUtils.defStringToOctetString("'01101100'B"));

            WithOctDef = param_WithOctDef;
            byte[] param_WithOctDef2 =
                CoderUtils.defStringToOctetString("'FFEEAA'H").Value;
            WithOctDef2 = param_WithOctDef2;
            System.Collections.Generic.ICollection <string> param_WithSeqOf =


                new System.Collections.Generic.List <string>();

            {
                param_WithSeqOf.Add(
                    "aa"
                    );

                param_WithSeqOf.Add(
                    "dd"
                    );
            }
            ;
            WithSeqOf = param_WithSeqOf;
            System.Collections.Generic.ICollection <TestPRN> param_WithSeqOf2 =


                new System.Collections.Generic.List <TestPRN>();

            {
                param_WithSeqOf2.Add(
                    new TestPRN("cc")
                    );

                param_WithSeqOf2.Add(
                    new TestPRN("ee")
                    );
            }
            ;
            WithSeqOf2 = param_WithSeqOf2;
            StringArray param_WithSeqOf3 =


                new StringArray();

            param_WithSeqOf3.initValue();

            {
                param_WithSeqOf3.Add(
                    "fff"
                    );

                param_WithSeqOf3.Add(
                    "ggg"
                    );
            }
            ;
            WithSeqOf3 = param_WithSeqOf3;
            WithEnumDefEnumType param_WithEnumDef =

                new WithEnumDefEnumType();

            param_WithEnumDef.Value = WithEnumDefEnumType.EnumType.two;
            WithEnumDef             = param_WithEnumDef;
        }