Exemplo n.º 1
0
 public AutoFilterRecord(RecordInputStream in1)
 {
     field_1_iEntry = in1.ReadShort();
     field_2_grbit  = in1.ReadShort();
     field_3_doper1 = new DOPERRecord(in1);
     field_4_doper2 = new DOPERRecord(in1);
     if (field_3_doper1.DataType == DOPERType.String && field_3_doper1.LengthOfString > 0)
     {
         rgch1_multibyte = (in1.ReadByte() != 0);
         if (rgch1_multibyte)
         {
             field_5_rgch1 = in1.ReadUnicodeLEString(field_3_doper1.LengthOfString);
         }
         else
         {
             field_5_rgch1 = in1.ReadCompressedUnicode(field_3_doper1.LengthOfString);
         }
     }
     if (field_4_doper2.DataType == DOPERType.String && field_4_doper2.LengthOfString > 0)
     {
         rgch2_multibyte = (in1.ReadByte() != 0);
         if (rgch2_multibyte)
         {
             field_6_rgch2 = in1.ReadUnicodeLEString(field_4_doper2.LengthOfString);
         }
         else
         {
             field_6_rgch2 = in1.ReadCompressedUnicode(field_4_doper2.LengthOfString);
         }
     }
 }
Exemplo n.º 2
0
 public AutoFilterRecord(RecordInputStream in1)
 {
     field_1_iEntry = in1.ReadShort();
     field_2_grbit = in1.ReadShort();
     field_3_doper1 = new DOPERRecord(in1);
     field_4_doper2 = new DOPERRecord(in1);
     if (field_3_doper1.DataType == DOPERType.String&&field_3_doper1.LengthOfString>0)
     {
         rgch1_multibyte = (in1.ReadByte() != 0);
         if (rgch1_multibyte)
         {
             field_5_rgch1 = in1.ReadUnicodeLEString(field_3_doper1.LengthOfString);
         }
         else
         {
             field_5_rgch1 = in1.ReadCompressedUnicode(field_3_doper1.LengthOfString);
         }
     }
     if (field_4_doper2.DataType == DOPERType.String && field_4_doper2.LengthOfString > 0)
     {
         rgch2_multibyte = (in1.ReadByte() != 0);
         if (rgch2_multibyte)
         {
             field_6_rgch2 = in1.ReadUnicodeLEString(field_4_doper2.LengthOfString);
         }
         else
         {
             field_6_rgch2 = in1.ReadCompressedUnicode(field_4_doper2.LengthOfString);
         }
     }
 }
Exemplo n.º 3
0
        public void TestChangeFromUnCompressedToCompressed()
        {
            byte[] changingFlagSimpleData = HexRead.ReadFromString(""
                                                                   + "AA AA " // fake SID
                                                                   + "0F 00 " // first rec len 15
                                                                   + HED_DUMP2
                                                                   );
            RecordInputStream in1    = TestcaseRecordInputStream.Create(changingFlagSimpleData);
            String            actual = in1.ReadCompressedUnicode(18);

            Assert.AreEqual("Multilingual - \u591A\u8A00\u8A9E", actual);
        }
Exemplo n.º 4
0
        public ViewFieldsRecord(RecordInputStream in1)
        {
            sxaxis   = in1.ReadShort();
            cSub     = in1.ReadShort();
            grbitSub = in1.ReadShort();
            cItm     = in1.ReadShort();

            int cchName = in1.ReadShort();

            if (cchName != STRING_NOT_PRESENT_LEN)
            {
                name = in1.ReadCompressedUnicode(cchName);
            }
        }
Exemplo n.º 5
0
        /**
         * Constructs a SeriesText record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public SeriesTextRecord(RecordInputStream in1)
        {

            field_1_id = in1.ReadShort();
            int field_2_textLength = (byte)in1.ReadByte();
            is16bit = (in1.ReadUByte() & 0x01) != 0;
            if (is16bit)
            {
                field_4_text = in1.ReadUnicodeLEString(field_2_textLength);
            }
            else
            {
                field_4_text = in1.ReadCompressedUnicode(field_2_textLength);
            }
        }
Exemplo n.º 6
0
        /**
         * Constructs a SeriesText record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public SeriesTextRecord(RecordInputStream in1)
        {
            field_1_id = in1.ReadShort();
            int field_2_textLength = (byte)in1.ReadByte();

            is16bit = (in1.ReadUByte() & 0x01) != 0;
            if (is16bit)
            {
                field_4_text = in1.ReadUnicodeLEString(field_2_textLength);
            }
            else
            {
                field_4_text = in1.ReadCompressedUnicode(field_2_textLength);
            }
        }
Exemplo n.º 7
0
        public ViewFieldsRecord(RecordInputStream in1)
        {
            sxaxis   = in1.ReadShort();
            cSub     = in1.ReadShort();
            grbitSub = in1.ReadShort();
            cItm     = in1.ReadShort();

            int cchName = in1.ReadUShort();

            if (cchName != STRING_NOT_PRESENT_LEN)
            {
                int flag = in1.ReadByte();
                if ((flag & 0x01) != 0)
                {
                    _name = in1.ReadUnicodeLEString(cchName);
                }
                else
                {
                    _name = in1.ReadCompressedUnicode(cchName);
                }
            }
        }