2 writes to _binaryReader
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
133_binaryReader = new BamlBinaryReader(stream); 223_binaryReader = null;
119 references to _binaryReader
PresentationFramework (119)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (119)
164if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position && 211if (_binaryReader != null) 215SharedStream sharedStream = _binaryReader.BaseStream as SharedStream; 219_binaryReader.Close(); 275_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 292_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 308_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 313if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position) 324long endOfKeysStartOfObjects = _binaryReader.BaseStream.Position; 334previousKeyRecord.ValueSize = (int)(_binaryReader.BaseStream.Length - previousKeyRecord.ValuePosition); 345if (record.ValuePosition == _binaryReader.BaseStream.Length) 350_binaryReader.BaseStream.Seek(record.ValuePosition, SeekOrigin.Begin); 398if (record.ValuePosition == _binaryReader.BaseStream.Length) 403_binaryReader.BaseStream.Seek(record.ValuePosition, SeekOrigin.Begin); 410return BamlSchemaContext.GetClrType(_binaryReader.ReadInt16()); 436if (_binaryReader.BaseStream.Position == _binaryReader.BaseStream.Length) 716string value = _binaryReader.ReadString(); 717string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 737string value = _binaryReader.ReadString(); 738int lineNumber = _binaryReader.ReadInt32(); 739int lineOffset = _binaryReader.ReadInt32(); 782string value = _binaryReader.ReadString(); 783short converterId = _binaryReader.ReadInt16(); 817XamlType type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()); 818byte flags = _binaryReader.ReadByte(); 835short resourceId = _binaryReader.ReadInt16(); 870byte flags = _binaryReader.ReadByte(); 871short keyId = _binaryReader.ReadInt16(); 911Int32 contentSize = _binaryReader.ReadInt32(); 919long position = _binaryReader.BaseStream.Position; 920binaryData = new SharedStream(_binaryReader.BaseStream, position, contentSize); 921_binaryReader.BaseStream.Seek(position + contentSize, SeekOrigin.Begin); 927binaryData = new MemoryStream(_binaryReader.ReadBytes(contentSize)); 947string value = _binaryReader.ReadString(); 948Int16 stringId = _binaryReader.ReadInt16(); 969Int16 keyStringId = _binaryReader.ReadInt16(); 970Int32 valuePosition = _binaryReader.ReadInt32(); 971bool isShared = _binaryReader.ReadBoolean(); 972bool isSharedSet = _binaryReader.ReadBoolean(); 988Int16 typeId = _binaryReader.ReadInt16(); 989byte flags = _binaryReader.ReadByte(); 990Int32 valuePosition = _binaryReader.ReadInt32(); 991bool isShared = _binaryReader.ReadBoolean(); 992bool isSharedSet = _binaryReader.ReadBoolean(); 1026string textValue = _binaryReader.ReadString(); 1034short textId = _binaryReader.ReadInt16(); 1087Int16 typeId = _binaryReader.ReadInt16(); 1105int stringLength = _binaryReader.ReadInt32(); 1109Stream s = _binaryReader.BaseStream; 1131Int16 typeId = _binaryReader.ReadInt16(); 1143SByte flags = _binaryReader.ReadSByte(); 1305Int16 typeId = _binaryReader.ReadInt16(); 1306byte flags = _binaryReader.ReadByte(); 1307Int32 valuePosition = _binaryReader.ReadInt32(); 1308bool isShared = _binaryReader.ReadBoolean(); 1309bool isSharedSet = _binaryReader.ReadBoolean(); 1375XamlMember eventProperty = GetProperty(_binaryReader.ReadInt16(), false); 1392_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1397XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1399_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1431BinaryReader reader = new BinaryReader(_binaryReader.BaseStream); 1497XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1499short serializerTypeId = _binaryReader.ReadInt16(); 1513_xamlNodesWriter.WriteValue(GetTextFromBinary(_binaryReader.ReadBytes(recordSize - 5), 1531_xamlNodesWriter.WriteValue(converter.ConvertFrom(_binaryReader.ReadBytes(dataByteSize))); 1535_xamlNodesWriter.WriteValue((_binaryReader.ReadBytes(1)[0] == 0) ? false : true); 1538_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1544property = BamlSchemaContext.GetDependencyProperty(_binaryReader.ReadInt16()); 1548Type type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()).UnderlyingType; 1549property = DependencyProperty.FromName(_binaryReader.ReadString(), type); 1558DeferredBinaryDeserializerExtension deserializerME = new DeferredBinaryDeserializerExtension(this, _binaryReader, converterId, dataByteSize); 1576XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1579object value = _binaryReader.ReadString(); 1580short typeConverterId = _binaryReader.ReadInt16(); 1633short propertyId = _binaryReader.ReadInt16(); 1634Int16 extensionId = _binaryReader.ReadInt16(); 1635Int16 valueId = _binaryReader.ReadInt16(); 1853XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1854XamlType type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()); 1880short propertyId = _binaryReader.ReadInt16(); 1881Int16 resourceId = _binaryReader.ReadInt16(); 1973XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1984XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1994XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 2118string prefix = _binaryReader.ReadString(); 2119string xamlNs = _binaryReader.ReadString(); 2133short recordSize = _binaryReader.ReadInt16(); 2143assemblies[i] = _binaryReader.ReadInt16(); 2153_context.LineOffset = _binaryReader.ReadInt32(); 2165_context.LineNumber = _binaryReader.ReadInt32(); 2166_context.LineOffset = _binaryReader.ReadInt32(); 2178string xmlNamespace = _binaryReader.ReadString(); 2179string clrNamespace = _binaryReader.ReadString(); 2180Int16 assemblyId = _binaryReader.ReadInt16(); 2186Int16 assemblyId = _binaryReader.ReadInt16(); 2187string assemblyName = _binaryReader.ReadString(); 2195Int16 typeId = _binaryReader.ReadInt16(); 2196Int16 assemblyId = _binaryReader.ReadInt16(); 2197string typeName = _binaryReader.ReadString(); 2207Int16 typeId = _binaryReader.ReadInt16(); 2208Int16 assemblyId = _binaryReader.ReadInt16(); 2209string typeName = _binaryReader.ReadString(); 2210Int16 serializerId = _binaryReader.ReadInt16(); // currently not used. (found through reflection) 2220short propertyId = _binaryReader.ReadInt16(); 2221Int16 declaringTypeId = _binaryReader.ReadInt16(); 2222byte usage = _binaryReader.ReadByte(); 2223string propertyName = _binaryReader.ReadString(); 2231Int16 id = _binaryReader.ReadInt16(); 2232string value = _binaryReader.ReadString(); 2239Int16 propertyId = _binaryReader.ReadInt16(); 2256int connectionId = _binaryReader.ReadInt32(); 2289byte value = _binaryReader.ReadByte(); 2300long offset = _binaryReader.BaseStream.Position; 2301int value = _binaryReader.Read7BitEncodedInt(); 2302int sizeOfEncoding = (int)(_binaryReader.BaseStream.Position - offset); 2315_binaryReader.BaseStream.Seek(offset, SeekOrigin.Current);