示例#1
0
 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]));
     }
 }
示例#2
0
        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 string ReadString(BinaryReader reader, int lengthbits)
        {
            StringDecoder stringDecoder = new StringDecoder(this, reader);

            return(stringDecoder.ReadString(lengthbits));
        }
示例#4
0
 public string ReadString(BinaryReader reader, int lengthbits)
 {
     StringDecoder stringDecoder = new StringDecoder(this, reader);
     return stringDecoder.ReadString(lengthbits);
 }