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 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 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); }