예제 #1
0
        public SequenceWithDefault createSequenceWithUntouchedDefaultValues()
        {
            SequenceWithDefault result = new SequenceWithDefault();

            result.Nodefault = 0xAA;
            // FIXME: int value must still be set because untouched default/optional int/long sequence/set fields are encoded as 0 instead of being skipped
            result.WithIntDef = 120;
            return(result);
        }
예제 #2
0
        public SequenceWithDefault createSequenceWithDefaultValues()
        {
            SequenceWithDefault result = new SequenceWithDefault();

            result.Nodefault        = 0xAA;
            result.WithDefault      = "dd";
            result.WithIntDef       = 120;
            result.WithSeqDef       = new SequenceWithDefault.WithSeqDefSequenceType();
            result.WithSeqDef.Name  = "Name";
            result.WithSeqDef.Email = "Email";
            result.WithOctDef       = new TestOCT(new byte[] { 0x6C });
            result.WithOctDef2      = new byte[] { (byte)0xFF, (byte)0xEE, (byte)0xAA };
            result.WithSeqOf        = new string[] { "aa", "dd" };
            result.WithSeqOf2       = new TestPRN[] { new TestPRN("cc"), new TestPRN("ee") };
            result.WithSeqOf3       = new StringArray()
            {
                Value = new String[] { "fff", "ggg" }
            };
            result.WithEnumDef       = new SequenceWithDefault.WithEnumDefEnumType();
            result.WithEnumDef.Value = SequenceWithDefault.WithEnumDefEnumType.EnumType.two;
            return(result);
        }