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

            return(stringDecoder.ReadString(lengthbits));
        }