106 overrides of Length
mscorlib (9)
system\io\__consolestream.cs (1)
75
public override long
Length
{
system\io\bufferedstream.cs (1)
230
public override Int64
Length
{
system\io\filestream.cs (1)
1174
public override long
Length
{
system\io\memorystream.cs (1)
313
public override long
Length
{
system\io\stream.cs (2)
877
public override long
Length
{
1115
public override long
Length
{
system\io\unmanagedmemorystream.cs (1)
310
public override long
Length
{
system\security\cryptography\cryptostream.cs (1)
92
public override long
Length
{
system\security\cryptography\mactripledes.cs (1)
193
public override long
Length
{
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
86
public override long
Length
PresentationCore (4)
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
138
public override long
Length
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
340
public override long
Length
Core\CSharp\MS\Internal\IO\Packaging\ResponseStream.cs (1)
215
public override long
Length
Shared\MS\Internal\IO\SynchronizingStream.cs (1)
220
public override long
Length
PresentationFramework (7)
src\Framework\MS\Internal\AppModel\BamlStream.cs (1)
108
public override long
Length
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (1)
116
public override long
Length
src\Framework\MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
268
public override long
Length
src\Framework\MS\Internal\Navigation\BindStream.cs (1)
128
public override long
Length
src\Framework\System\Windows\Markup\Baml2006\SharedStream.cs (1)
127
public override long
Length
src\Framework\System\Windows\Markup\XamlStream.cs (2)
679
public override long
Length
845
public override long
Length
System (21)
net\System\Net\_ConnectStream.cs (1)
532
public override long
Length
{
net\System\Net\_FtpDataStream.cs (1)
142
public override long
Length
{
net\System\Net\_ListenerRequestStream.cs (1)
82
public override long
Length
{
net\System\Net\_ListenerResponseStream.cs (1)
90
public override long
Length
{
net\System\Net\_PooledStream.cs (1)
416
public override long
Length
{
net\System\Net\Cache\_CacheStreams.cs (4)
84
public override long
Length
{
400
public override long
Length
{
916
public override long
Length
{
1078
public override long
Length
{
net\System\Net\Cache\_SingleItemRequestCache.cs (2)
317
public override long
Length
{get {return _Bytes.Length;}}
475
public override long
Length
{get {throw new NotSupportedException(SR.GetString(SR.net_writeonlystream));}}
net\System\Net\mail\DelegatedStream.cs (1)
63
public override long
Length
net\System\Net\SecureProtocols\NegotiateStream.cs (1)
480
public override long
Length
{
net\System\Net\SecureProtocols\SslStream.cs (1)
463
public override long
Length
{
net\System\Net\Sockets\NetworkStream.cs (1)
349
public override long
Length
{
net\System\Net\webclient.cs (1)
3034
public override long
Length
{
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
104
public override long
Length
sys\system\configuration\ClientSettingsStore.cs (1)
361
public override long
Length
{
sys\System\IO\compression\DeflateStream.cs (1)
277
public override long
Length
{
sys\System\IO\compression\GZipStream.cs (1)
75
public override long
Length
{
sys\system\io\ports\SerialStream.cs (1)
120
public override long
Length
System.Core (2)
System\IO\LogStream.cs (1)
185
public override long
Length
{
System\IO\Pipes\PipeStream.cs (1)
1038
public override long
Length
{
System.Data (12)
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (1)
56
public override long
Length
{
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (1)
56
public override long
Length
{
fx\src\data\System\Data\Sql\sqlser.cs (1)
231
public override long
Length
{
fx\src\data\System\Data\SqlClient\SqlClientWrapperSmiStream.cs (1)
47
public override long
Length
{
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
61
public override long
Length
fx\src\data\System\Data\SqlClient\SqlSequentialStreamSmi.cs (1)
42
public override long
Length
fx\src\data\System\Data\SqlClient\SqlStream.cs (2)
66
override public long
Length
{
299
override public long
Length
{
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10131
public override long
Length
{
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (1)
658
public override long
Length
{
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
230
public override long
Length
fx\src\data\System\Data\SQLTypes\SqlXml.cs (1)
324
public override long
Length
{
System.Data.Services (3)
parent\Client\System\Data\Services\Client\BatchStream.cs (2)
172
public override long
Length
1519
public override long
Length
System\Data\Services\DelegateBodyWriter.cs (1)
124
public override long
Length
System.Data.Services.Client (2)
System\Data\Services\Client\BatchStream.cs (2)
172
public override long
Length
1519
public override long
Length
System.IdentityModel (1)
System\IdentityModel\HashStream.cs (1)
50
public override long
Length
System.IO.Log (3)
System\IO\Log\FileLogRecordStream.cs (1)
187
public override long
Length
System\IO\Log\FileRegion.cs (1)
106
public override long
Length
System\IO\Log\LogLogRecord.cs (1)
120
public override long
Length
System.Runtime.Remoting (6)
channels\core\chunkedmemorystream.cs (1)
50
public override long
Length
channels\core\socketstream.cs (1)
49
public override long
Length
{ get { throw new NotSupportedException(); } }
channels\http\httpstreams.cs (2)
33
public override long
Length
{ get { throw new NotSupportedException(); } }
260
public override long
Length
{ get { throw new NotSupportedException(); } }
channels\ipc\pipestream.cs (1)
40
public override long
Length
{ get { throw new NotSupportedException(); } }
channels\tcp\tcpstreams.cs (1)
50
public override long
Length
{ get { throw new NotSupportedException(); } }
System.Runtime.Serialization (4)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
125
public override long
Length
System\Xml\EncodingStreamWrapper.cs (1)
731
public override long
Length
{ get { return this.stream.Length; } }
System\Xml\XmlMtomReader.cs (2)
2103
public override long
Length
2830
public override long
Length
System.ServiceModel (5)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (1)
77
public override long
Length
System\ServiceModel\Channels\Connection.cs (1)
337
public override long
Length
System\ServiceModel\Channels\DelegatingStream.cs (1)
63
public override long
Length
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
1100
public override long
Length
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
331
public override long
Length
System.ServiceModel.Internals (1)
System\Runtime\BufferedOutputStream.cs (1)
72
public override long
Length
System.ServiceModel.Web (1)
System\ServiceModel\Channels\StreamBodyWriter.cs (1)
106
public override long
Length
System.Web (4)
Configuration\RemoteWebConfigurationHostStream.cs (1)
114
public override long
Length
HttpBufferlessInputStream.cs (1)
99
public override long
Length
{
HttpInputStream.cs (1)
344
public override long
Length
{
HttpWriter.cs (1)
679
public override long
Length
{
System.Web.Services (2)
System\Web\Services\Protocols\BufferedResponseStream.cs (1)
29
public override long
Length
{ get { throw new NotSupportedException(Res.GetString(Res.StreamDoesNotSeek)); } }
System\Web\Services\Protocols\SoapExtensionStream.cs (1)
51
public override long
Length
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataStreamFromComStream.cs (1)
55
public override long
Length
{
System.Xml (1)
System\Xml\XmlDownloadManager.cs (1)
196
public override long
Length
{
WindowsBase (16)
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (1)
77
public override long
Length
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (1)
97
public override long
Length
Base\MS\Internal\IO\Packaging\CompoundFile\StreamWithDictionary.cs (1)
40
public override long
Length
Base\MS\Internal\IO\Packaging\CompoundFile\VersionedStream.cs (1)
145
public override long
Length
Base\MS\Internal\IO\Packaging\CompressEmulationStream.cs (1)
202
public override long
Length
Base\MS\Internal\IO\Packaging\CompressStream.cs (1)
369
public override long
Length
Base\MS\Internal\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
96
public override long
Length
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
435
public override long
Length
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (1)
58
override public long
Length
Base\MS\Internal\IO\Packaging\streamingZipPartStream.cs (1)
228
public override long
Length
Base\MS\Internal\IO\Zip\ProgressiveCrcCalculatingStream.cs (1)
64
override public long
Length
Base\MS\Internal\IO\Zip\WriteTimeStream.cs (1)
49
override public long
Length
Base\MS\Internal\IO\Zip\ZipIOFileItemStream.cs (1)
66
override public long
Length
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (1)
77
override public long
Length
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (1)
268
public override long
Length
Base\System\IO\Packaging\Package.cs (1)
1575
public override long
Length
243 references to Length
mscorlib (16)
system\io\bufferedstream.cs (1)
237
return _stream.
Length
;
system\io\stream.cs (1)
1118
return _stream.
Length
;
system\reflection\emit\modulebuilder.cs (1)
453
byte[] resBytes = new byte[resWriter.m_memoryStream.
Length
];
system\resources\manifestbasedresourcegroveler.cs (1)
289
if (store.CanSeek && store.
Length
> 4)
system\resources\resourcereader.cs (8)
387
if (dataPos < 0 || dataPos >= _store.BaseStream.
Length
- _dataSectionOffset) {
477
if (dataOffset < 0 || dataOffset >= _store.BaseStream.
Length
- _dataSectionOffset) {
495
if (dataOffset < 0 || dataOffset >= _store.BaseStream.
Length
- _dataSectionOffset) {
514
if (dataPos < 0 || dataPos >= _store.BaseStream.
Length
- _dataSectionOffset) {
747
if (len > _store.BaseStream.
Length
) {
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!");
system\resources\resourcewriter.cs (2)
699
if (s.
Length
> Int32.MaxValue)
703
writer.Write((int)s.
Length
);
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (1)
2058
length = sout.
Length
;
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
187
if (serializationStream.CanSeek && (serializationStream.
Length
== 0))
PresentationBuildTasks (1)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
88
get { return SourceStream.
Length
; }
PresentationCore (43)
Core\CSharp\MS\Internal\FontCache\FontSource.cs (2)
347
memoryFont = new byte[(int)fontStream.
Length
];
348
PackagingUtilities.ReliableRead(fontStream, memoryFont, 0, (int)fontStream.
Length
);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (14)
589
return br.ReadChars((int)(memStream.
Length
- 2));
603
return br.ReadBytes((int)(memStream.
Length
- previouslyReadBytes));
607
int count = (int)(memStream.
Length
- 2) / 2; // 2 is the size of one element
615
int count = (int)(memStream.
Length
- 2) / 2; // 2 is the size of one element
623
int count = (int)(memStream.
Length
- 2) / 4; // 2 is the size of one element
631
int count = (int)(memStream.
Length
- 2) / 4; // size of one element
639
int count = (int)(memStream.
Length
- 2) / Native.BitsPerByte; // size of one element
647
int count = (int)(memStream.
Length
- 2) / Native.BitsPerByte; // size of one element
655
int count = (int)(memStream.
Length
- 2) / 4; // size of one element
663
int count = (int)(memStream.
Length
- 2) / Native.BitsPerByte; // size of one element
671
int count = (int)(memStream.
Length
- 2) / Native.BitsPerByte; // size of one element
681
int count = (int)(memStream.
Length
- 2); // size of one element
689
int count = (int)((memStream.
Length
- 2) / Native.SizeOfDecimal); // size of one element
723
byte[] bytestring = br.ReadBytes((int)memStream.
Length
);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (11)
107
System.Diagnostics.Debug.Assert(inkData.
Length
> isfBase64PrefixLength);
110
List<char> charData = new List<char>((int)inkData.
Length
);
273
if (inkdata.
Length
>= 7)
279
if (!fBase64 && inkdata.
Length
>= 3)
1950
if (cumulativeEncodedSize != localStream.
Length
)
1964
if (cumulativeEncodedSize != localStream.
Length
)
1978
if (cumulativeEncodedSize != localStream.
Length
)
1992
if (cumulativeEncodedSize != localStream.
Length
)
2026
if (cumulativeEncodedSize != localStream.
Length
)
2029
if (cumulativeEncodedSize != localStream.
Length
)
2166
if (data.
Length
< isfBase64PrefixBytes.Length)
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
142
return _obfuscatedStream.
Length
;
Core\CSharp\MS\Internal\IO\Packaging\ResponseStream.cs (1)
223
return _innerStream.
Length
;
Core\CSharp\System\IO\Packaging\PackWebResponse.cs (3)
281
_fullStreamLength = s.
Length
; // just this stream
459
_fullStreamLength = GetResponseStream().
Length
;
715
_parent._fullStreamLength = s.
Length
;
Core\CSharp\System\Windows\DataObject.cs (2)
1892
IntPtr size = (IntPtr)inkStream.
Length
;
2033
size = (IntPtr)stream.
Length
;
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (1)
140
int bytesToRead = (int)( stream.
Length
- stream.Position );
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
701
bufferSize = (int)stm.
Length
+ 1; // If this stream is seekable (most cases), we will only have one buffer alloc and read below
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (1)
151
int len = (int)source.
Length
; // only works on seekable streams.
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1843
if (!seekable || ((!bitmapStream.CanWrite) && (bitmapStream.
Length
<= 1048576)))
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
428
int percentComplete = (int)Math.Floor(100.0 * (double)entry.outputStream.
Length
/ (double)entry.contentLength);
Core\CSharp\System\Windows\Media\StreamAsIStream.cs (3)
193
if (virtualPosition > dataStream.
Length
)
397
long len = dataStream.
Length
;
494
statstgOut.cbSize = dataStream.
Length
;
Shared\MS\Internal\IO\SynchronizingStream.cs (1)
227
return _baseStream.
Length
;
PresentationFramework (19)
src\Framework\MS\Internal\AppModel\BamlStream.cs (1)
110
get { return _stream.
Length
; }
src\Framework\MS\Internal\IO\Packaging\managedIStream.cs (1)
133
streamStats.cbSize = _ioStream.
Length
;
src\Framework\MS\Internal\Navigation\BindStream.cs (1)
132
return _stream.
Length
;
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
762
if (_stream.
Length
== 0)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (2)
2213
byte[] imageHexBytes = new byte[imageStream.
Length
* 2];
2218
for (int i = 0; i < imageStream.
Length
; i++)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
181
if (_binaryReader.BaseStream.
Length
== _binaryReader.BaseStream.Position &&
330
if (_binaryReader.BaseStream.
Length
== _binaryReader.BaseStream.Position)
351
previousKeyRecord.ValueSize = (int)(_binaryReader.BaseStream.
Length
- previousKeyRecord.ValuePosition);
362
if (record.ValuePosition == _binaryReader.BaseStream.
Length
)
416
if (record.ValuePosition == _binaryReader.BaseStream.
Length
)
454
if (_binaryReader.BaseStream.Position == _binaryReader.BaseStream.
Length
)
src\Framework\System\Windows\Markup\Baml2006\SharedStream.cs (1)
28
Initialize(baseStream, 0, baseStream.
Length
);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (6)
201
return (int)(stream.
Length
- stream.Position);
232
long bytesAvailable = stream.
Length
- currentPosition;
273
if (BinaryReader.BaseStream.
Length
>
326
long bytesAvailable = stream.
Length
- stream.Position;
1728
long bytesAvailable = stream.
Length
- startPosition;
5672
get { return _bamlStream.
Length
; }
System (22)
compmod\system\diagnostics\DefaultTraceListener.cs (1)
136
stream.Position = stream.
Length
;
net\System\Net\Cache\_CacheStreams.cs (5)
86
return WrappedStream.
Length
+ (m_HeadEOF? m_HeadLength: m_HeadStream.
Length
);
402
return WrappedStream.
Length
- m_BytesToSkip;
917
get {return WrappedStream.
Length
;}
1080
long dummy = WrappedStream.
Length
;
net\System\Net\Cache\_SingleItemRequestCache.cs (1)
70
bytes = new byte[stream.
Length
];
net\System\Net\filewebresponse.cs (1)
55
m_contentLength = m_stream.
Length
;
net\System\Net\mail\DelegatedStream.cs (1)
70
return this.stream.
Length
;
net\System\Net\SecureProtocols\NegotiateStream.cs (1)
482
return InnerStream.
Length
;
net\System\Net\SecureProtocols\SslStream.cs (1)
465
return InnerStream.
Length
;
net\System\Net\webclient.cs (1)
3036
return m_stream.
Length
;
sys\system\configuration\ClientSettingsStore.cs (9)
362
get { return _originalStream.
Length
; }
399
long oldLen = _originalStream.
Length
;
419
long oldLen = _originalStream.
Length
;
445
long oldLen = _originalStream.
Length
;
447
_originalStream.
Length
+ (long)count;
457
long oldLen = _originalStream.
Length
;
458
long newLen = _originalStream.CanSeek ? _originalStream.Position + 1 : _originalStream.
Length
+ 1;
480
long oldLen = _originalStream.
Length
;
482
_originalStream.
Length
+ (long)numBytes;
sys\system\Media\SoundPlayer.cs (1)
358
int streamLen = (int) stream.
Length
;
System.AddIn (1)
System\Addin\Hosting\AddInStore.cs (1)
1090
if (s.
Length
< 12)
System.Configuration (7)
System\Configuration\MgmtConfigurationRecord.cs (6)
1209
readBuffer = new byte[streamRead.
Length
];
1210
int count = streamRead.Read(readBuffer, 0, (int) streamRead.
Length
);
1211
if (count != streamRead.
Length
) {
3090
readBuffer = new byte[streamRead.
Length
];
3091
int count = streamRead.Read(readBuffer, 0, (int) streamRead.
Length
);
3092
if (count != streamRead.
Length
) {
System\Configuration\XmlUtilWriter.cs (1)
455
_streamLength = writer._baseStream.
Length
;
System.Data (16)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (4)
2327
if ( source.CanSeek && __maxByteChunkSize > source.
Length
) {
2328
chunkSize = unchecked( (int) source.
Length
); // unchecked cast is safe due to check on line above
2353
if ( source.CanSeek && __maxByteChunkSize > source.
Length
) {
2354
chunkSize = unchecked( (int) source.
Length
); // unchecked cast is safe due to check on line above
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (5)
196
return m_stream.
Length
;
230
if (m_stream.
Length
> x_lMaxLen)
232
buffer = new byte[m_stream.
Length
];
235
m_stream.Read(buffer, 0, checked((int)m_stream.
Length
));
483
long lStreamLen = m_stream.
Length
;
fx\src\data\System\Data\SQLTypes\SqlXml.cs (7)
328
return m_stream.
Length
;
341
if (value < 0 || value > m_stream.
Length
)
360
if (offset < 0 || offset > m_stream.
Length
)
367
if (lPosition < 0 || lPosition > m_stream.
Length
)
373
lPosition = m_stream.
Length
+ offset;
374
if (lPosition < 0 || lPosition > m_stream.
Length
)
429
if (m_stream.CanSeek && m_lPosition >= m_stream.
Length
)
System.Data.Services.Client (4)
System\Data\Services\Client\DataServiceContext.cs (2)
4357
httpWebRequest.ContentLength = contentStream.Stream.
Length
- contentStream.Stream.Position;
4376
httpWebRequest.ContentLength = contentStream.Stream.
Length
- contentStream.Stream.Position;
System\Data\Services\Client\QueryResult.cs (2)
251
else if (copy.Position < copy.
Length
)
692
if (outputResponse.Position < outputResponse.
Length
)
System.Drawing (9)
commonui\System\Drawing\Advanced\GPStream.cs (3)
48
if (virtualPosition > dataStream.
Length
)
137
long len = dataStream.
Length
;
181
stats.cbSize = dataStream.
Length
;
commonui\System\Drawing\Icon.cs (2)
163
iconData = new byte[(int)stream.
Length
];
192
iconData = new byte[(int)stream.
Length
];
commonui\System\Drawing\Image.cs (2)
431
image.rawData = new byte[(int)dataStream.
Length
];
432
dataStream.Read(image.rawData, 0, (int)dataStream.
Length
);
commonui\System\Drawing\UnsafeNativeMethods.cs (2)
234
if (virtualPosition > dataStream.
Length
)
318
long len = dataStream.
Length
;
System.IdentityModel (1)
System\IdentityModel\XmlBuffer.cs (1)
106
int size = (int)stream.
Length
- offset;
System.IO.Log (2)
System\IO\Log\LogLogRecord.cs (2)
127
return this.innerStream.
Length
;
222
byte[] newData = new byte[this.innerStream.
Length
];
System.Messaging (3)
System\Messaging\ActiveXMessageFormatter.cs (2)
427
if (virtualPosition > dataStream.
Length
)
528
long len = dataStream.
Length
;
System\Messaging\Message.cs (1)
2212
byte[] bytes = new byte[(int)this.cachedBodyStream.
Length
];
System.Runtime.Remoting (10)
channels\http\httpclientchannel.cs (3)
710
httpWebRequest.ContentLength = (int)inputStream.
Length
;
727
httpWebRequest.ContentLength = (int)inputStream.
Length
;
962
WebRequest.ContentLength = (int)RequestStream.
Length
;
channels\http\httpremotinghandler.cs (1)
643
length = (int)httpContentStream.
Length
;
channels\http\httpstreams.cs (1)
780
headers["Content-Length"] = httpContentStream.
Length
.ToString(CultureInfo.InvariantCulture);
channels\ipc\ipcclientchannel.cs (1)
294
int requestLength = (int)requestStream.
Length
;
channels\ipc\ipcclientmanager.cs (1)
96
int contentLength = (int)contentStream.
Length
;
channels\ipc\ipcmanager.cs (1)
252
WriteInt32((int)contentStream.
Length
, headerStream);
channels\tcp\tcpclientsocketmanager.cs (1)
143
int requestLength = (int)contentStream.
Length
;
channels\tcp\tcpstreams.cs (1)
354
WriteInt32((int)contentStream.
Length
, headerStream);
System.Runtime.Serialization (4)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
127
get { return this.stream.
Length
; }
System\Xml\EncodingStreamWrapper.cs (1)
731
public override long Length { get { return this.stream.
Length
; } }
System\Xml\XmlMtomReader.cs (2)
1037
get { return stream.CanSeek ? stream.
Length
: 0; }
1044
MemoryStream bufferedStream = stream.CanSeek ? new MemoryStream((int)stream.
Length
) : new MemoryStream();
System.Security (1)
system\security\cryptography\xml\transform.cs (1)
1387
if ((decryptedContent == null) || (decryptedContent.
Length
== 0))
System.ServiceModel (4)
System\ServiceModel\Channels\DelegatingStream.cs (1)
67
return stream.
Length
;
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (2)
145
if (stream.
Length
> int.MaxValue)
150
size = (int)stream.
Length
;
System\ServiceModel\XmlBuffer.cs (1)
107
int size = (int)stream.
Length
- offset;
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\XmlStreamedByteStreamReader.cs (1)
87
long streamLength = stream.
Length
;
System.Web (5)
HttpRequest.cs (1)
2460
return(s != null) ? (int)s.
Length
: 0;
HttpResponse.cs (2)
2692
size = f.
Length
- offset;
2710
long size = s.
Length
;
State\StateRuntime.cs (1)
528
int bufferSize = (int)(requestStream.
Length
- requestStream.Position);
UI\WebControls\FileUpload.cs (1)
67
long fileStreamLength = fileStream.
Length
;
System.Web.Extensions (2)
ClientServices\Providers\ProxyHelper.cs (2)
144
if (s.CanSeek && s.
Length
> len)
145
len = (int) s.
Length
;
System.Web.Services (1)
System\Web\Services\Protocols\SoapExtensionStream.cs (1)
55
return innerStream.
Length
;
System.Windows.Forms (10)
winforms\Managed\System\WinForms\AxHost.cs (1)
6621
length = (int)ms.
Length
;
winforms\Managed\System\WinForms\Cursor.cs (4)
91
cursorData = new byte[stream.
Length
];
92
stream.Read(cursorData, 0, Convert.ToInt32(stream.
Length
)); // we assume that a cursor is less than 4gig big
151
cursorData = new byte[stream.
Length
];
152
stream.Read(cursorData, 0, Convert.ToInt32(stream.
Length
));// assume that a cursor is less than 4gig...
winforms\Managed\System\WinForms\DataObject.cs (1)
953
int size = (int)stream.
Length
;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3110
int streamLength = (int)stream.
Length
;
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (3)
6637
if (virtualPosition > dataStream.
Length
)
6723
long len = dataStream.
Length
;
6767
pstatstg.cbSize = dataStream.
Length
;
System.Workflow.Activities (1)
Common\CompModHelpers.cs (1)
340
if (stateStream.
Length
== 0)
System.Workflow.ComponentModel (4)
AuthoringOM\Design\DesignerHelpers.cs (3)
1265
int activityDataLengthPosition = (int)writer.BaseStream.
Length
;
1273
int activityDataPosition = (int)writer.BaseStream.
Length
;
1280
writer.Write((int)writer.BaseStream.
Length
- activityDataPosition);
Shared\CompModHelpers.cs (1)
338
if (stateStream.
Length
== 0)
System.WorkflowServices (4)
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (4)
34
this.workflowDefinition = new byte[workflowDefinition.
Length
];
35
workflowDefinition.Read(this.workflowDefinition, 0, (int) workflowDefinition.
Length
);
39
this.ruleDefinition = new byte[ruleDefinition.
Length
];
40
ruleDefinition.Read(this.ruleDefinition, 0, (int) ruleDefinition.
Length
);
System.Xml (3)
System\Xml\Core\XmlReader.cs (1)
1707
long len = input.
Length
;
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
289
int size = checked((int)value.
Length
);
System\Xml\XmlDownloadManager.cs (1)
197
get { return stream.
Length
; }
WindowsBase (49)
Base\MS\Internal\IO\Packaging\Certificate.cs (4)
107
if (s.
Length
> 0)
110
if (s.
Length
> _maximumCertificateStreamLength)
114
Byte[] byteArray = new Byte[s.
Length
];
115
PackagingUtilities.ReliableRead(s, byteArray, 0, (int)s.
Length
);
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileDeflateTransform.cs (1)
229
sourceBufferSize = (int)(Math.Min(source.
Length
, (long)_defaultBlockSize));
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
219
if (reader.BaseStream.
Length
< bytesRead / 2)
Base\MS\Internal\IO\Packaging\CompoundFile\PrivateUnsafeNativeCompoundFileMethods.cs (1)
226
returnValue.cbSize = _baseStream.
Length
;
Base\MS\Internal\IO\Packaging\CompoundFile\StreamWithDictionary.cs (1)
45
return baseStream.
Length
;
Base\MS\Internal\IO\Packaging\CompoundFile\VersionedStream.cs (3)
46
_versionOwner.ReadAttempt(_stream.
Length
> 0);
70
_versionOwner.ReadAttempt(_stream.
Length
> 0);
150
return _stream.
Length
;
Base\MS\Internal\IO\Packaging\CompoundFile\VersionedStreamOwner.cs (3)
158
long temp = checked(BaseStream.
Length
- _dataOffset);
314
if (throwIfEmpty || BaseStream.
Length
> 0)
386
if ((_fileVersion == null) && (BaseStream.
Length
> 0))
Base\MS\Internal\IO\Packaging\CompressEmulationStream.cs (2)
100
checked { temp = _tempStream.
Length
+ offset; }
207
return _tempStream.
Length
;
Base\MS\Internal\IO\Packaging\CompressStream.cs (4)
405
UpdateUncompressedDataLength(_current.
Length
);
406
return _current.
Length
;
558
if (_dirtyForClosing && ((_baseStream.CanSeek && _baseStream.
Length
== 0) ||
726
UpdateUncompressedDataLength(_current.
Length
);
Base\MS\Internal\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
101
return _stream.
Length
;
Base\MS\Internal\IO\Packaging\InterleavedZipPartStream.cs (1)
445
checked { length += _dir.GetStream(pieceNumber).
Length
; }
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (3)
235
if (offset < checked(currentPieceInfo.StartOffset + currentPieceInfo.Stream.
Length
))
399
long newStartOffset = checked(currentPieceStreamInfo.StartOffset + currentPieceStreamInfo.Stream.
Length
);
455
if (_lastPieceIndex == 0 && _pieceStreamInfoList[0].Stream.
Length
== 0)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (3)
662
if (_isolatedStorageStream.
Length
< _lowWaterMark)
664
if (_isolatedStorageStream.
Length
> 0)
668
(_trackingMemoryStreamFactory.Create((int)_isolatedStorageStream.
Length
),
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
784
Debug.Assert(SignaturePart.GetStream().
Length
== 0, "Logic Error: Can't sign when signature already exists");
Base\MS\Internal\IO\Zip\ProgressiveCrcCalculatingStream.cs (4)
70
return _underlyingStream.
Length
;
308
if (_highWaterMark < _underlyingStream.
Length
)
312
_highWaterMark = _underlyingStream.
Length
;
345
if (_underlyingStream.CanSeek && _highWaterMark == _underlyingStream.
Length
)
Base\MS\Internal\IO\Zip\ZipArchive.cs (2)
134
bool emptyStream = (stream.
Length
== 0);
467
((_openMode == FileMode.OpenOrCreate) && archiveStream.
Length
== 0))
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (4)
263
Debug.Assert(_openStreaming || _archiveStream.
Length
== 0);
482
else if (archiveStream.
Length
> 0)
486
ZipIORawDataFileBlock rawBlock = ZipIORawDataFileBlock.Assign(this, 0, archiveStream.
Length
);
954
if (dirtyBlockFound && (Stream.
Length
> currentOffset))
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryDigitalSignature.cs (1)
57
if ((reader.BaseStream.
Length
- reader.BaseStream.Position) < _fixedMinimalRecordSize)
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (1)
308
long streamLength = archiveStream.
Length
;
Base\MS\Internal\IO\Zip\ZipIOModeEnforcingStream.cs (1)
82
long result = _baseStream.
Length
;
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs (1)
199
(checked(suspectPos + sizeof(UInt32)) > blockManager.Stream.
Length
))
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (4)
274
return _baseStream.
Length
;
299
if (newLength != _baseStream.
Length
)
1369
if( transformDefinition.
Length
> transformDefinition.Position )
1372
int instanceDataSize = checked ((int)(transformDefinition.
Length
- transformDefinition.Position));
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (1)
115
if( 0 == baseStream.
Length
)
Base\System\IO\Packaging\Package.cs (1)
1580
return _stream.
Length
;