5 writes to _store
mscorlib (5)
system\resources\resourcereader.cs (5)
167_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8); 189_store = new BinaryReader(stream, Encoding.UTF8); 209_store = new BinaryReader(stream, Encoding.UTF8); 237_store = null; 241_store = null;
114 references to _store
mscorlib (114)
system\resources\resourcereader.cs (114)
174_store.Close(); // If we threw an exception, close the file. 231if (_store != null) { 236BinaryReader copyOfStore = _store; 259_store.BaseStream.Seek(4, SeekOrigin.Current); 264int stringLength = _store.Read7BitEncodedInt(); 268_store.BaseStream.Seek(stringLength, SeekOrigin.Current); 323Contract.Assert(_store != null, "ResourceReader is closed!"); 384_store.BaseStream.Seek(_nameSectionOffset + GetNamePosition(i), SeekOrigin.Begin); 386int dataPos = _store.ReadInt32(); 387if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) { 405Contract.Assert(_store != null, "ResourceReader is closed!"); 406int byteLen = _store.Read7BitEncodedInt(); 428int n = _store.Read(bytes, byteLen - numBytesToRead, numBytesToRead); 443Contract.Assert(_store != null, "ResourceReader is closed!"); 448_store.BaseStream.Seek(nameVA + _nameSectionOffset, SeekOrigin.Begin); 450byteLen = _store.Read7BitEncodedInt(); 476dataOffset = _store.ReadInt32(); 477if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) { 489int n = _store.Read(bytes, byteLen - count, count); 494dataOffset = _store.ReadInt32(); 495if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) { 507Contract.Assert(_store != null, "ResourceReader is closed!"); 510_store.BaseStream.Seek(nameVA + _nameSectionOffset, SeekOrigin.Begin); 513int dataPos = _store.ReadInt32(); 514if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) { 532Contract.Assert(_store != null, "ResourceReader is closed!"); 533_store.BaseStream.Seek(_dataSectionOffset+pos, SeekOrigin.Begin); 535int typeIndex = _store.Read7BitEncodedInt(); 541s = _store.ReadString(); 554s = _store.ReadString(); 585Contract.Assert(_store != null, "ResourceReader is closed!"); 605_store.BaseStream.Seek(_dataSectionOffset+pos, SeekOrigin.Begin); 606int typeIndex = _store.Read7BitEncodedInt(); 610BCLDebug.Log("RESMGRFILEFORMAT", "LoadObject type: "+type.Name+" pos: 0x"+_store.BaseStream.Position.ToString("x", CultureInfo.InvariantCulture)); 616return _store.ReadString(); 618return _store.ReadInt32(); 620return _store.ReadByte(); 622return _store.ReadSByte(); 624return _store.ReadInt16(); 626return _store.ReadInt64(); 628return _store.ReadUInt16(); 630return _store.ReadUInt32(); 632return _store.ReadUInt64(); 634return _store.ReadSingle(); 636return _store.ReadDouble(); 640return new DateTime(_store.ReadInt64()); 643return new TimeSpan(_store.ReadInt64()); 647bits[i] = _store.ReadInt32(); 661Contract.Assert(_store != null, "ResourceReader is closed!"); 679_store.BaseStream.Seek(_dataSectionOffset+pos, SeekOrigin.Begin); 680typeCode = (ResourceTypeCode) _store.Read7BitEncodedInt(); 682BCLDebug.Log("RESMGRFILEFORMAT", "LoadObjectV2 type: "+typeCode+" pos: 0x"+_store.BaseStream.Position.ToString("x", CultureInfo.InvariantCulture)); 689return _store.ReadString(); 692return _store.ReadBoolean(); 695return (char) _store.ReadUInt16(); 698return _store.ReadByte(); 701return _store.ReadSByte(); 704return _store.ReadInt16(); 707return _store.ReadUInt16(); 710return _store.ReadInt32(); 713return _store.ReadUInt32(); 716return _store.ReadInt64(); 719return _store.ReadUInt64(); 722return _store.ReadSingle(); 725return _store.ReadDouble(); 728return _store.ReadDecimal(); 732Int64 data = _store.ReadInt64(); 736Int64 ticks = _store.ReadInt64(); 741int len = _store.ReadInt32(); 747if (len > _store.BaseStream.Length) { 750return _store.ReadBytes(len); 764int len = _store.ReadInt32(); 769byte[] bytes = _store.ReadBytes(len); 837graph = _objFormatter.UnsafeDeserialize(_store.BaseStream, null); 841graph = _objFormatter.Deserialize(_store.BaseStream); 859Contract.Assert(_store != null, "ResourceReader is closed!"); 887int magicNum = _store.ReadInt32(); 894int resMgrHeaderVersion = _store.ReadInt32(); 895int numBytesToSkip = _store.ReadInt32(); 901_store.BaseStream.Seek(numBytesToSkip, SeekOrigin.Current); 909String readerType = _store.ReadString(); 921int version = _store.ReadInt32(); 946_numResources = _store.ReadInt32(); 958int numTypes = _store.ReadInt32(); 965_typeNamePositions[i] = (int) _store.BaseStream.Position; 982long pos = _store.BaseStream.Position; 986_store.ReadByte(); 1001_nameHashes[i] = _store.ReadInt32(); 1032int namePosition = _store.ReadInt32(); 1059_dataSectionOffset = _store.ReadInt32(); 1065_nameSectionOffset = _store.BaseStream.Position; 1084long oldPos = _store.BaseStream.Position; 1086_store.BaseStream.Position = _typeNamePositions[typeIndex]; 1087String typeName = _store.ReadString(); 1107_store.BaseStream.Position = oldPos; 1120long oldPos = _store.BaseStream.Position; 1123_store.BaseStream.Position = _typeNamePositions[i]; 1124typeName = _store.ReadString(); 1127_store.BaseStream.Position = oldPos; 1205_store.BaseStream.Position = _nameSectionOffset + GetNamePosition(i); 1207int numBytesToSkip = _store.Read7BitEncodedInt(); 1211_store.BaseStream.Position += numBytesToSkip; 1213int dPos = _store.ReadInt32(); 1214if (dPos < 0 || dPos >= _store.BaseStream.Length - _dataSectionOffset) { 1223long nextData = (index < _numResources - 1) ? sortedDataPositions[index + 1] + _dataSectionOffset : _store.BaseStream.Length; 1225Contract.Assert(len >= 0 && len <= (int) _store.BaseStream.Length - dataPos + _dataSectionOffset, "Length was negative or outside the bounds of the file!"); 1228_store.BaseStream.Position = _dataSectionOffset + dataPos; 1229ResourceTypeCode typeCode = (ResourceTypeCode) _store.Read7BitEncodedInt(); 1237len -= (int) (_store.BaseStream.Position - (_dataSectionOffset + dataPos)); 1238byte[] bytes = _store.ReadBytes(len); 1255long oldPos = _store.BaseStream.Position; 1257_store.BaseStream.Position = _typeNamePositions[typeIndex]; 1258return _store.ReadString(); 1261_store.BaseStream.Position = oldPos;