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