100 references to BaseStream
mscorlib (39)
system\resources\manifestbasedresourcegroveler.cs (2)
315
long endPosition = br.
BaseStream
.Position + numBytesToSkip;
320
br.
BaseStream
.Seek(endPosition, SeekOrigin.Begin);
system\resources\resourcereader.cs (37)
259
_store.
BaseStream
.Seek(4, SeekOrigin.Current);
268
_store.
BaseStream
.Seek(stringLength, SeekOrigin.Current);
384
_store.
BaseStream
.Seek(_nameSectionOffset + GetNamePosition(i), SeekOrigin.Begin);
387
if (dataPos < 0 || dataPos >= _store.
BaseStream
.Length - _dataSectionOffset) {
448
_store.
BaseStream
.Seek(nameVA + _nameSectionOffset, SeekOrigin.Begin);
477
if (dataOffset < 0 || dataOffset >= _store.
BaseStream
.Length - _dataSectionOffset) {
495
if (dataOffset < 0 || dataOffset >= _store.
BaseStream
.Length - _dataSectionOffset) {
510
_store.
BaseStream
.Seek(nameVA + _nameSectionOffset, SeekOrigin.Begin);
514
if (dataPos < 0 || dataPos >= _store.
BaseStream
.Length - _dataSectionOffset) {
533
_store.
BaseStream
.Seek(_dataSectionOffset+pos, SeekOrigin.Begin);
605
_store.
BaseStream
.Seek(_dataSectionOffset+pos, SeekOrigin.Begin);
610
BCLDebug.Log("RESMGRFILEFORMAT", "LoadObject type: "+type.Name+" pos: 0x"+_store.
BaseStream
.Position.ToString("x", CultureInfo.InvariantCulture));
679
_store.
BaseStream
.Seek(_dataSectionOffset+pos, SeekOrigin.Begin);
682
BCLDebug.Log("RESMGRFILEFORMAT", "LoadObjectV2 type: "+typeCode+" pos: 0x"+_store.
BaseStream
.Position.ToString("x", CultureInfo.InvariantCulture));
747
if (len > _store.
BaseStream
.Length) {
837
graph = _objFormatter.UnsafeDeserialize(_store.
BaseStream
, null);
841
graph = _objFormatter.Deserialize(_store.
BaseStream
);
901
_store.
BaseStream
.Seek(numBytesToSkip, SeekOrigin.Current);
965
_typeNamePositions[i] = (int) _store.
BaseStream
.Position;
982
long pos = _store.
BaseStream
.Position;
1065
_nameSectionOffset = _store.
BaseStream
.Position;
1084
long oldPos = _store.
BaseStream
.Position;
1086
_store.
BaseStream
.Position = _typeNamePositions[typeIndex];
1107
_store.
BaseStream
.Position = oldPos;
1120
long oldPos = _store.
BaseStream
.Position;
1123
_store.
BaseStream
.Position = _typeNamePositions[i];
1127
_store.
BaseStream
.Position = oldPos;
1205
_store.
BaseStream
.Position = _nameSectionOffset + GetNamePosition(i);
1211
_store.
BaseStream
.Position += numBytesToSkip;
1214
if (dPos < 0 || dPos >= _store.
BaseStream
.Length - _dataSectionOffset) {
1223
long nextData = (index < _numResources - 1) ? sortedDataPositions[index + 1] + _dataSectionOffset : _store.
BaseStream
.Length;
1225
Contract.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;
1237
len -= (int) (_store.
BaseStream
.Position - (_dataSectionOffset + dataPos));
1255
long oldPos = _store.
BaseStream
.Position;
1257
_store.
BaseStream
.Position = _typeNamePositions[typeIndex];
1261
_store.
BaseStream
.Position = oldPos;
PresentationFramework (31)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (23)
181
if (_binaryReader.
BaseStream
.Length == _binaryReader.
BaseStream
.Position &&
232
SharedStream sharedStream = _binaryReader.
BaseStream
as SharedStream;
292
_binaryReader.
BaseStream
.Seek(-1, SeekOrigin.Current);
309
_binaryReader.
BaseStream
.Seek(-1, SeekOrigin.Current);
325
_binaryReader.
BaseStream
.Seek(-1, SeekOrigin.Current);
330
if (_binaryReader.
BaseStream
.Length == _binaryReader.
BaseStream
.Position)
341
long endOfKeysStartOfObjects = _binaryReader.
BaseStream
.Position;
351
previousKeyRecord.ValueSize = (int)(_binaryReader.
BaseStream
.Length - previousKeyRecord.ValuePosition);
362
if (record.ValuePosition == _binaryReader.
BaseStream
.Length)
367
_binaryReader.
BaseStream
.Seek(record.ValuePosition, SeekOrigin.Begin);
416
if (record.ValuePosition == _binaryReader.
BaseStream
.Length)
421
_binaryReader.
BaseStream
.Seek(record.ValuePosition, SeekOrigin.Begin);
454
if (_binaryReader.
BaseStream
.Position == _binaryReader.
BaseStream
.Length)
940
long position = _binaryReader.
BaseStream
.Position;
941
binaryData = new SharedStream(_binaryReader.
BaseStream
, position, contentSize);
942
_binaryReader.
BaseStream
.Seek(position + contentSize, SeekOrigin.Begin);
1445
BinaryReader reader = new BinaryReader(_binaryReader.
BaseStream
);
2324
long offset = _binaryReader.
BaseStream
.Position;
2326
int sizeOfEncoding = (int)(_binaryReader.
BaseStream
.Position - offset);
2339
_binaryReader.
BaseStream
.Seek(offset, SeekOrigin.Current);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (7)
200
Stream stream = BinaryReader.
BaseStream
;
215
Stream stream = BinaryReader.
BaseStream
;
273
if (BinaryReader.
BaseStream
.Length >
274
BinaryReader.
BaseStream
.Position)
325
Stream stream = BinaryReader.
BaseStream
;
477
BinaryReader.
BaseStream
.Position = startPosition;
1726
Stream stream = BinaryReader.
BaseStream
;
src\Framework\System\Windows\Markup\BamlVersionHeader.cs (1)
74
BamlVersion = FormatVersion.LoadFromStream(bamlBinaryReader.
BaseStream
);
System.AddIn (16)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (7)
234
B.
BaseStream
.Seek(4, SeekOrigin.Current); // Skip reserved
270
UInt32 Offset = (UInt32)B.
BaseStream
.Position;
363
B.
BaseStream
.Seek(tableAt[(Int32)T]+Row*lengths[(Int32)T], SeekOrigin.Begin);
413
UInt32 Position = (UInt32)B.
BaseStream
.Position;
431
B.
BaseStream
.Seek(Position, SeekOrigin.Begin);
438
UInt32 position = (UInt32) B.
BaseStream
.Position;
440
B.
BaseStream
.Seek(position, SeekOrigin.Begin);
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (9)
40
B.
BaseStream
.Seek(position + Nth, SeekOrigin.Begin);
64
B.
BaseStream
.Seek(0x3C, SeekOrigin.Begin); // Pointer to signature
66
B.
BaseStream
.Seek(signatureAt, SeekOrigin.Begin);
73
B.
BaseStream
.Seek(MagicAt, SeekOrigin.Begin);
90
B.
BaseStream
.Seek(CLIHeaderDDAt, SeekOrigin.Begin);
94
B.
BaseStream
.Seek(NSectionsAt, SeekOrigin.Begin);
96
B.
BaseStream
.Seek(sectionHeadersAt, SeekOrigin.Begin);
100
B.
BaseStream
.Seek(sectionHeadersAt + i * 40, SeekOrigin.Begin);
185
B.
BaseStream
.Seek(RVAToFileAddress(RVA), SeekOrigin.Begin);
System.Web (3)
State\SessionStateItemCollection.cs (1)
612
int bytesRead = reader.
BaseStream
.Read(buffer, 0, d._iLastOffset);
UI\ObjectStateFormatter.cs (1)
614
return EventValidationStore.DeserializeFrom(reader.
BaseStream
);
Util\altserialization.cs (1)
274
value = formatter.Deserialize(reader.
BaseStream
);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\DesignerHelpers.cs (2)
1307
reader.
BaseStream
.Position += length; // skip activity data
1314
reader.
BaseStream
.Position += length; // skip activity data
WindowsBase (9)
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
219
if (reader.
BaseStream
.Length < bytesRead / 2)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (3)
732
utf8Reader.
BaseStream
.Seek(0, SeekOrigin.Begin);
1202
utf8Reader.
BaseStream
.Seek(0, SeekOrigin.Begin);
1238
utf8Reader.
BaseStream
.Seek(0, SeekOrigin.Begin);
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryBlock.cs (1)
407
if (reader.
BaseStream
.Position - centralDirectoryOffset > expectedCentralDirectorySize)
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryDigitalSignature.cs (2)
57
if ((reader.
BaseStream
.Length - reader.
BaseStream
.Position) < _fixedMinimalRecordSize)
Base\MS\Internal\IO\Zip\ZipIOExtraFieldPaddingElement.cs (1)
74
reader.
BaseStream
.Seek(size, SeekOrigin.Current);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldZip64Element.cs (1)
115
reader.
BaseStream
.Seek(size, SeekOrigin.Current);