예제 #1
0
 public override void Decode()
 {
     MemoryStream stream = new MemoryStream(Data);
     BinaryReader reader = new BinaryReader(stream);
     TotalOccurance = reader.ReadInt32();
     NumStrings = reader.ReadInt32();
     StringList = new FastSearchList<string>(NumStrings);
     RichTextFormatting = new RichTextFormat[NumStrings];
     StringDecoder stringDecoder = new StringDecoder(this, reader);
     for (int i = 0; i < NumStrings; i++)
     {
         StringList.Add(stringDecoder.ReadString(16, out RichTextFormatting[i]));
     }
 }
예제 #2
0
파일: SST.cs 프로젝트: pantonioletti/EERRVS
        public override void Decode()
        {
            MemoryStream stream = new MemoryStream(Data);
            BinaryReader reader = new BinaryReader(stream);

            TotalOccurance     = reader.ReadInt32();
            NumStrings         = reader.ReadInt32();
            StringList         = new UniqueList <string>(NumStrings);
            RichTextFormatting = new RichTextFormat[NumStrings];
            StringDecoder stringDecoder = new StringDecoder(this, reader);

            for (int i = 0; i < NumStrings; i++)
            {
                StringList.Add(stringDecoder.ReadString(16, out RichTextFormatting[i]));
            }
        }
예제 #3
0
        public override void Decode()
        {
            MemoryStream input        = new MemoryStream(this.Data);
            BinaryReader binaryReader = new BinaryReader(input);

            this.TotalOccurance     = binaryReader.ReadInt32();
            this.NumStrings         = binaryReader.ReadInt32();
            this.StringList         = new UniqueList <string>(this.NumStrings);
            this.RichTextFormatting = new RichTextFormat[this.NumStrings];
            StringDecoder stringDecoder = new StringDecoder(this, binaryReader);

            checked
            {
                for (int i = 0; i < this.NumStrings; i++)
                {
                    this.StringList.Add(stringDecoder.ReadString(16, out this.RichTextFormatting[i]));
                }
            }
        }
예제 #4
0
 public string ReadString(BinaryReader reader, int lengthbits)
 {
     StringDecoder stringDecoder = new StringDecoder(this, reader);
     return stringDecoder.ReadString(lengthbits);
 }
예제 #5
0
        public string ReadString(BinaryReader reader, int lengthbits)
        {
            StringDecoder stringDecoder = new StringDecoder(this, reader);

            return(stringDecoder.ReadString(lengthbits));
        }