2 writes to _binaryReader
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
128_binaryReader = new BamlBinaryReader(stream); 218_binaryReader = null;
119 references to _binaryReader
PresentationFramework (119)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (119)
159if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position && 206if (_binaryReader != null) 210SharedStream sharedStream = _binaryReader.BaseStream as SharedStream; 214_binaryReader.Close(); 270_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 287_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 303_binaryReader.BaseStream.Seek(-1, SeekOrigin.Current); 308if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position) 319long endOfKeysStartOfObjects = _binaryReader.BaseStream.Position; 329previousKeyRecord.ValueSize = (int)(_binaryReader.BaseStream.Length - previousKeyRecord.ValuePosition); 340if (record.ValuePosition == _binaryReader.BaseStream.Length) 345_binaryReader.BaseStream.Seek(record.ValuePosition, SeekOrigin.Begin); 393if (record.ValuePosition == _binaryReader.BaseStream.Length) 398_binaryReader.BaseStream.Seek(record.ValuePosition, SeekOrigin.Begin); 405return BamlSchemaContext.GetClrType(_binaryReader.ReadInt16()); 431if (_binaryReader.BaseStream.Position == _binaryReader.BaseStream.Length) 711string value = _binaryReader.ReadString(); 712string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 732string value = _binaryReader.ReadString(); 733int lineNumber = _binaryReader.ReadInt32(); 734int lineOffset = _binaryReader.ReadInt32(); 777string value = _binaryReader.ReadString(); 778short converterId = _binaryReader.ReadInt16(); 812XamlType type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()); 813byte flags = _binaryReader.ReadByte(); 830short resourceId = _binaryReader.ReadInt16(); 865byte flags = _binaryReader.ReadByte(); 866short keyId = _binaryReader.ReadInt16(); 906Int32 contentSize = _binaryReader.ReadInt32(); 914long position = _binaryReader.BaseStream.Position; 915binaryData = new SharedStream(_binaryReader.BaseStream, position, contentSize); 916_binaryReader.BaseStream.Seek(position + contentSize, SeekOrigin.Begin); 922binaryData = new MemoryStream(_binaryReader.ReadBytes(contentSize)); 942string value = _binaryReader.ReadString(); 943Int16 stringId = _binaryReader.ReadInt16(); 964Int16 keyStringId = _binaryReader.ReadInt16(); 965Int32 valuePosition = _binaryReader.ReadInt32(); 966bool isShared = _binaryReader.ReadBoolean(); 967bool isSharedSet = _binaryReader.ReadBoolean(); 983Int16 typeId = _binaryReader.ReadInt16(); 984byte flags = _binaryReader.ReadByte(); 985Int32 valuePosition = _binaryReader.ReadInt32(); 986bool isShared = _binaryReader.ReadBoolean(); 987bool isSharedSet = _binaryReader.ReadBoolean(); 1021string textValue = _binaryReader.ReadString(); 1029short textId = _binaryReader.ReadInt16(); 1082Int16 typeId = _binaryReader.ReadInt16(); 1100int stringLength = _binaryReader.ReadInt32(); 1104Stream s = _binaryReader.BaseStream; 1126Int16 typeId = _binaryReader.ReadInt16(); 1138SByte flags = _binaryReader.ReadSByte(); 1300Int16 typeId = _binaryReader.ReadInt16(); 1301byte flags = _binaryReader.ReadByte(); 1302Int32 valuePosition = _binaryReader.ReadInt32(); 1303bool isShared = _binaryReader.ReadBoolean(); 1304bool isSharedSet = _binaryReader.ReadBoolean(); 1370XamlMember eventProperty = GetProperty(_binaryReader.ReadInt16(), false); 1387_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1392XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1394_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1426BinaryReader reader = new BinaryReader(_binaryReader.BaseStream); 1492XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1494short serializerTypeId = _binaryReader.ReadInt16(); 1508_xamlNodesWriter.WriteValue(GetTextFromBinary(_binaryReader.ReadBytes(recordSize - 5), 1526_xamlNodesWriter.WriteValue(converter.ConvertFrom(_binaryReader.ReadBytes(dataByteSize))); 1530_xamlNodesWriter.WriteValue((_binaryReader.ReadBytes(1)[0] == 0) ? false : true); 1533_xamlNodesWriter.WriteValue(_binaryReader.ReadString()); 1539property = BamlSchemaContext.GetDependencyProperty(_binaryReader.ReadInt16()); 1543Type type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()).UnderlyingType; 1544property = DependencyProperty.FromName(_binaryReader.ReadString(), type); 1553DeferredBinaryDeserializerExtension deserializerME = new DeferredBinaryDeserializerExtension(this, _binaryReader, converterId, dataByteSize); 1571XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1574object value = _binaryReader.ReadString(); 1575short typeConverterId = _binaryReader.ReadInt16(); 1628short propertyId = _binaryReader.ReadInt16(); 1629Int16 extensionId = _binaryReader.ReadInt16(); 1630Int16 valueId = _binaryReader.ReadInt16(); 1848XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1849XamlType type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16()); 1875short propertyId = _binaryReader.ReadInt16(); 1876Int16 resourceId = _binaryReader.ReadInt16(); 1968XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1979XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1989XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 2113string prefix = _binaryReader.ReadString(); 2114string xamlNs = _binaryReader.ReadString(); 2128short recordSize = _binaryReader.ReadInt16(); 2138assemblies[i] = _binaryReader.ReadInt16(); 2148_context.LineOffset = _binaryReader.ReadInt32(); 2160_context.LineNumber = _binaryReader.ReadInt32(); 2161_context.LineOffset = _binaryReader.ReadInt32(); 2173string xmlNamespace = _binaryReader.ReadString(); 2174string clrNamespace = _binaryReader.ReadString(); 2175Int16 assemblyId = _binaryReader.ReadInt16(); 2181Int16 assemblyId = _binaryReader.ReadInt16(); 2182string assemblyName = _binaryReader.ReadString(); 2190Int16 typeId = _binaryReader.ReadInt16(); 2191Int16 assemblyId = _binaryReader.ReadInt16(); 2192string typeName = _binaryReader.ReadString(); 2202Int16 typeId = _binaryReader.ReadInt16(); 2203Int16 assemblyId = _binaryReader.ReadInt16(); 2204string typeName = _binaryReader.ReadString(); 2205Int16 serializerId = _binaryReader.ReadInt16(); // currently not used. (found through reflection) 2215short propertyId = _binaryReader.ReadInt16(); 2216Int16 declaringTypeId = _binaryReader.ReadInt16(); 2217byte usage = _binaryReader.ReadByte(); 2218string propertyName = _binaryReader.ReadString(); 2226Int16 id = _binaryReader.ReadInt16(); 2227string value = _binaryReader.ReadString(); 2234Int16 propertyId = _binaryReader.ReadInt16(); 2251int connectionId = _binaryReader.ReadInt32(); 2284byte value = _binaryReader.ReadByte(); 2295long offset = _binaryReader.BaseStream.Position; 2296int value = _binaryReader.Read7BitEncodedInt(); 2297int sizeOfEncoding = (int)(_binaryReader.BaseStream.Position - offset); 2310_binaryReader.BaseStream.Seek(offset, SeekOrigin.Current);