Пример #1
0
        public DataItemRecord(RecordInputStream in1)
        {
            isxvdData = in1.ReadUShort();
            iiftab    = in1.ReadUShort();
            df        = in1.ReadUShort();
            isxvd     = in1.ReadUShort();
            isxvi     = in1.ReadUShort();
            ifmt      = in1.ReadUShort();

            name = in1.ReadString();
        }
Пример #2
0
        public void TestReadString()
        {
            byte[] changingFlagFullData = HexRead.ReadFromString(""
                                                                 + "AA AA " // fake SID
                                                                 + "12 00 " // first rec len 18 (15 + next 3 bytes)
                                                                 + "12 00 " // total chars 18
                                                                 + "00 "    // this bit compressed
                                                                 + HED_DUMP2
                                                                 );
            RecordInputStream in1    = TestcaseRecordInputStream.Create(changingFlagFullData);
            String            actual = in1.ReadString();

            Assert.AreEqual("Multilingual - \u591A\u8A00\u8A9E", actual);
        }