internal static StrokeDictionary Deserialize(BinaryReader binaryReader) { StrokeDictionary dictionary = new StrokeDictionary(); binaryReader.ReadInt32(); dictionary.Length = binaryReader.ReadInt32(); dictionary.Count = binaryReader.ReadInt32(); dictionary.Offset = binaryReader.ReadInt16(); binaryReader.ReadBytes(0x18); dictionary.StrokeUnitTable = new List <StrokeUnit>(); for (int i = 0; i < dictionary.Count; i++) { dictionary.StrokeUnitTable.Add(StrokeUnit.Deserialize(binaryReader)); } binaryReader.ReadInt16(); return(dictionary); }
internal static StrokeDictionary Deserialize(BinaryReader binaryReader) { StrokeDictionary strokeDictionary = new StrokeDictionary(); binaryReader.ReadInt32(); strokeDictionary.Length = binaryReader.ReadInt32(); strokeDictionary.Count = binaryReader.ReadInt32(); strokeDictionary.Offset = binaryReader.ReadInt16(); binaryReader.ReadBytes(24); strokeDictionary.StrokeUnitTable = new List <StrokeUnit>(); for (int index = 0; index < strokeDictionary.Count; ++index) { strokeDictionary.StrokeUnitTable.Add(StrokeUnit.Deserialize(binaryReader)); } int num = (int)binaryReader.ReadInt16(); return(strokeDictionary); }