211 overrides of Length
Aspire.Hosting (1)
Utils\HashDigestStream.cs (1)
47public override long Length => throw new NotImplementedException();
Aspire.Hosting.Browsers.Tests (1)
BrowserLogsCdpConnectionTests.cs (1)
576public override long Length => throw new NotSupportedException();
Aspire.Hosting.Tests (1)
Dcp\GatedReadStream.cs (1)
22public override long Length => throw new NotSupportedException();
dotnet-svcutil-lib (9)
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (1)
732public override long Length { get { return _stream.Length; } }
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (1)
70public override long Length
FrameworkFork\System.ServiceModel\System\IdentityModel\HashStream.cs (1)
45public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (1)
111public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (1)
286public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DelegatingStream.cs (1)
81public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
163public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
959public override long Length
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
333public override long Length
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
87public override long Length => _sectionData.Length;
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
87public override long Length => _sectionData.Length;
Microsoft.AspNetCore.Components.Server (3)
Circuits\RemoteJSDataStream.cs (1)
155public override long Length => _totalLength;
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
34public override long Length => ArrayBuilder.Count;
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputFile\BrowserFileStream.cs (1)
44public override long Length => _file.Size;
Microsoft.AspNetCore.Components.WebAssembly (2)
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
34public override long Length => ArrayBuilder.Count;
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
49public override long Length => _totalLength;
Microsoft.AspNetCore.Components.WebView (2)
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
34public override long Length => ArrayBuilder.Count;
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
49public override long Length => _totalLength;
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\AutoCloseOnReadCompleteStream.cs (1)
22 public override long Length => _baseStream.Length;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\AutoCloseOnReadCompleteStream.cs (1)
22 public override long Length => _baseStream.Length;
Microsoft.AspNetCore.Http (1)
Internal\ReferenceReadStream.cs (1)
43public override long Length
Microsoft.AspNetCore.Http.Connections (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
27public override long Length => _length;
Microsoft.AspNetCore.Http.Connections.Client (1)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
27public override long Length => _length;
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
36public override long Length => _innerStream.Length;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\NonDisposableStream.cs (1)
38public override long Length => _innerStream.Length;
Microsoft.AspNetCore.OpenApi (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.OutputCaching (1)
Streams\OutputCacheStream.cs (1)
33public override long Length => _innerStream.Length;
Microsoft.AspNetCore.RequestDecompression (1)
src\aspnetcore\src\Shared\SizeLimitedStream.cs (1)
28public override long Length => _innerStream.Length;
Microsoft.AspNetCore.ResponseCaching (2)
src\aspnetcore\src\Shared\SegmentWriteStream.cs (1)
42public override long Length => _length;
Streams\ResponseCachingStream.cs (1)
33public override long Length => _innerStream.Length;
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionBody.cs (1)
73public override long Length
Microsoft.AspNetCore.Server.HttpSys (4)
RequestProcessing\OpaqueStream.cs (1)
41public override long Length
RequestProcessing\RequestStream.cs (1)
67public override long Length => throw new NotSupportedException(Resources.Exception_NoSeek);
RequestProcessing\ResponseBody.cs (1)
70public override long Length
ResponseStream.cs (1)
23public override long Length => _innerStream.Length;
Microsoft.AspNetCore.Server.IIS (6)
Core\DuplexStream.cs (1)
24public override long Length => throw new NotSupportedException();
Core\HttpUpgradeStream.cs (1)
49public override long Length
Core\ReadOnlyStream.cs (1)
20public override long Length
Core\WrappingStream.cs (1)
31public override long Length => _inner.Length;
Core\WriteOnlyStreamInternal.cs (1)
28public override long Length => throw new NotSupportedException();
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
43public override long Length
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\HttpRequestStream.cs (1)
28public override long Length => throw new NotSupportedException();
Internal\Http\HttpResponseStream.cs (1)
26public override long Length => throw new NotSupportedException();
Internal\Http\HttpUpgradeStream.cs (1)
49public override long Length
Internal\Infrastructure\StatusCheckWriteStream.cs (1)
40public override long Length => _inner.Length;
Internal\Infrastructure\ThrowingWasUpgradedWriteOnlyStream.cs (1)
10public override long Length => throw new NotSupportedException();
Internal\Infrastructure\WrappingStream.cs (1)
30public override long Length => _inner.Length;
Middleware\Internal\LoggingStream.cs (1)
45public override long Length
src\aspnetcore\src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
43public override long Length
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
27public override long Length => _length;
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
38public override long Length => _bytesWritten;
Microsoft.AspNetCore.TestHost (3)
AsyncStreamWrapper.cs (1)
23public override long Length => throw new NotSupportedException("The stream is not seekable.");
ResponseBodyReaderStream.cs (1)
39public override long Length => throw new NotSupportedException();
ResponseBodyWriterStream.cs (1)
23public override long Length => throw new NotSupportedException();
Microsoft.AspNetCore.Watch.BrowserRefresh (2)
src\sdk\src\Dotnet.Watch\Web.Middleware\ResponseStreamWrapper.cs (1)
48public override long Length { get; }
src\sdk\src\Dotnet.Watch\Web.Middleware\ScriptInjectingStream.cs (1)
36public override long Length { get; }
Microsoft.AspNetCore.WebSockets (1)
AbortStream.cs (1)
41public override long Length => _innerStream.Length;
Microsoft.AspNetCore.WebUtilities (4)
BufferedReadStream.cs (1)
83public override long Length
FileBufferingReadStream.cs (1)
195public override long Length
FileBufferingWriteStream.cs (1)
76public override long Length => PagedByteBuffer.Length + (FileStream?.Length ?? 0);
MultipartReaderStream.cs (1)
66public override long Length
Microsoft.Build (2)
Logging\BinaryLogger\Postprocessing\SubStream.cs (1)
41public override long Length => _length;
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (1)
68public override long Length => _stream.Length;
Microsoft.Build.Framework (1)
BackEnd\BufferedReadStream.cs (1)
42public override long Length { get { return _innerStream.Length; } }
Microsoft.CodeAnalysis (4)
Collections\ImmutableMemoryStream.cs (1)
43public override long Length
InternalUtilities\BlobBuildingStream.cs (1)
49public override long Length => _builder.Count;
InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (1)
71public override long Length
Text\SourceTextStream.cs (1)
84public override long Length
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
Microsoft.Diagnostics.DataContractReader.Contracts (1)
TargetStream.cs (1)
24public override long Length => _size;
Microsoft.DotNet.Cli.Utils (1)
BlockingMemoryStream.cs (1)
74public override long Length { get { throw new NotImplementedException(); } }
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1391public override long Length => _position;
Microsoft.Extensions.AI.Abstractions.Tests (4)
Files\DelegatingHostedFileClientTests.cs (1)
249public override long Length => _inner.Length;
Files\HostedFileClientExtensionsTests.cs (1)
581public override long Length => _inner.Length;
Files\HostedFileDownloadStreamTests.cs (2)
92public override long Length => _inner.Length; 127public override long Length => _inner.Length;
Microsoft.Extensions.AI.OpenAI (1)
OpenAIFileDownloadStream.cs (1)
65public override long Length => _innerStream.Length;
Microsoft.Extensions.AI.Tests (2)
Files\LoggingHostedFileClientTests.cs (1)
549public override long Length => _inner.Length;
Files\OpenTelemetryHostedFileClientTests.cs (1)
622public override long Length => _inner.Length;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
NotSeekableStream.cs (1)
26public override long Length => _innerStream.Length;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NotSeekableStream.cs (1)
25public override long Length => _innerStream.Length;
Microsoft.Maui.Controls (1)
StreamWrapper.cs (1)
45 public override long Length
Microsoft.ML.Core (3)
Utilities\HybridMemoryStream.cs (1)
39public override long Length => MyStream.Length;
Utilities\SubsetStream.cs (1)
101public override long Length
Utilities\TextReaderStream.cs (1)
42public override long Length
Microsoft.ML.Data (1)
Utilities\ModelFileUtils.cs (1)
431public override long Length
Microsoft.ML.FastTree (1)
Utils\StreamExtensions.cs (1)
40public override long Length => _inner.Length;
Microsoft.ML.Tests (1)
ImagesTests.cs (1)
1389public override long Length => _stream.Length;
Microsoft.ML.Tokenizers.Tests (1)
SentencePieceTests.cs (1)
939public override long Length => throw new NotSupportedException();
Microsoft.NET.Build.Containers (1)
Layer.cs (1)
388public override long Length => throw new NotImplementedException();
Microsoft.TemplateEngine.Core (2)
Util\CombinedStream.cs (1)
27public override long Length => throw new NotImplementedException();
Util\StreamProxy.cs (1)
49public override long Length => _currentTargetStream.Length;
Microsoft.TemplateEngine.Utils (1)
InMemoryFileSystem.cs (1)
898public override long Length => _basis.Length;
NuGet.Packaging (2)
PackageArchiveReader.cs (1)
233public override long Length { get => _size; }
Signing\Archive\ReadOnlyBufferedStream.cs (1)
31public override long Length => _length.Value;
NuGet.Protocol (2)
Events\ProtocolDiagnosticsStream.cs (1)
35public override long Length => _baseStream.Length;
Utility\DownloadTimeoutStream.cs (1)
121public override long Length
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
69public override long Length
PresentationCore (4)
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
132public override long Length
MS\Internal\IO\Packaging\NetStream.cs (1)
318public override long Length
MS\Internal\IO\Packaging\ResponseStream.cs (1)
209public override long Length
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (1)
217public override long Length
PresentationFramework (7)
MS\Internal\AppModel\BamlStream.cs (1)
90public override long Length
MS\Internal\IO\Packaging\ByteStream.cs (1)
93public override long Length
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
249public override long Length
MS\Internal\Navigation\BindStream.cs (1)
121public override long Length
System\Windows\Markup\Baml2006\SharedStream.cs (1)
117public override long Length
System\Windows\Markup\XamlStream.cs (2)
634public override long Length 797public override long Length
PresentationUI (2)
MS\Internal\Documents\Application\StreamProxy.cs (1)
115public override long Length
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (1)
121public override long Length
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
109public override long Length => this.length;
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (2)
1020public override long Length => throw new NotSupportedException(); 1098public override long Length
TestMockStream.cs (1)
40public override long Length { get { return InnerStream.Length; } }
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
83public override long Length => _stream.Length;
System.Console (1)
System\IO\ConsoleStream.cs (1)
57public sealed override long Length => throw Error.GetSeekNotSupported();
System.Data.Common (2)
System\Data\SQLTypes\SQLBytes.cs (1)
656public override long Length
System\Data\SQLTypes\SqlXml.cs (1)
325public override long Length
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
44public override long Length
System\Formats\Tar\GnuSparseStream.cs (1)
103public override long Length
System.IO.Compression (14)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
44public override long Length
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
61public override long Length
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
199public override long Length 1114public override long Length { get { throw new NotSupportedException(); } }
System\IO\Compression\GZipStream.cs (1)
58public override long Length
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (1)
98public override long Length
System\IO\Compression\WinZipAesStream.cs (1)
651public override long Length => throw new NotSupportedException();
System\IO\Compression\ZipArchiveEntry.cs (1)
2247public override long Length
System\IO\Compression\ZipCryptoStream.cs (1)
270public override long Length => throw new NotSupportedException();
System\IO\Compression\ZipCustomStreams.cs (3)
42public override long Length 300public override long Length 529public override long Length
System\IO\Compression\ZLibStream.cs (1)
75public override long Length => throw new NotSupportedException();
System\IO\Compression\Zstandard\ZstandardStream.cs (1)
137public override long Length => throw new NotSupportedException();
System.IO.Compression.Brotli (1)
System\IO\Compression\BrotliStream.cs (1)
193public override long Length => throw new NotSupportedException();
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
353public override long Length => throw new NotSupportedException();
System.IO.Packaging (3)
System\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
60public override long Length
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
475public override long Length
System\IO\Packaging\ZipWrappingStream.cs (1)
118public override long Length
System.IO.Pipelines (2)
System\IO\Pipelines\PipeReaderStream.cs (1)
38public override long Length => throw new NotSupportedException();
System\IO\Pipelines\PipeWriterStream.cs (1)
48public override long Length => throw new NotSupportedException();
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.cs (1)
291public override long Length
System.IO.Ports (1)
System\IO\Ports\SerialStream.cs (1)
55public override long Length
System.Memory (1)
System\Buffers\ReadOnlySequenceStream.cs (1)
58public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream);
System.Net.Http (4)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
33public override long Length
System\Net\Http\HttpBaseStream.cs (1)
31public sealed override long Length => throw new NotSupportedException();
System\Net\Http\HttpContent.cs (1)
1150public override long Length => _totalLength;
System\Net\Http\MultipartContent.cs (1)
616public override long Length => _length;
System.Net.Http.Json (1)
System\Net\Http\Json\LengthLimitReadStream.cs (1)
89public override long Length => _innerStream.Length;
System.Net.Http.WinHttpHandler (2)
System\Net\Http\WinHttpRequestStream.cs (1)
62public override long Length
System\Net\Http\WinHttpResponseStream.cs (1)
56public override long Length
System.Net.HttpListener (2)
System\Net\HttpRequestStream.cs (1)
42public override long Length => throw new NotSupportedException(SR.net_noseek);
System\Net\HttpResponseStream.cs (1)
22public override long Length => throw new NotSupportedException(SR.net_noseek);
System.Net.Mail (1)
System\Net\DelegatedStream.cs (1)
30public override long Length
System.Net.Quic (1)
System\Net\Quic\QuicStream.Stream.cs (1)
23public override long Length => throw new NotSupportedException();
System.Net.Requests (5)
System\Net\FtpDataStream.cs (1)
174public override long Length
System\Net\HttpWebResponse.cs (1)
391public override long Length => throw new NotSupportedException();
System\Net\NetworkStreamWrapper.cs (1)
117public override long Length
System\Net\RequestBufferingStream.cs (1)
36public override long Length
System\Net\RequestStream.cs (1)
60public override long Length
System.Net.Security (2)
System\Net\Security\NegotiateStream.cs (1)
276public override long Length => InnerStream.Length;
System\Net\Security\SslStream.cs (1)
679public override long Length => InnerStream.Length;
System.Net.Sockets (1)
System\Net\Sockets\NetworkStream.cs (1)
184public override long Length
System.Net.WebClient (2)
src\runtime\src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
111public override long Length => _totalLength;
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
33public override long Length
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketStream.cs (1)
173public override long Length => throw new NotSupportedException();
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
179public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
437public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
290public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (1)
43public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
40public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (1)
33public override long Length => _strategy.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (1)
77public sealed override long Length => _fileHandle.GetFileLength();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
1014public override long Length => 0; 1097public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (1)
88public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
253public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
45public override long Length
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
77public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
95public override long Length
System\Xml\EncodingStreamWrapper.cs (1)
711public override long Length { get { return _stream.Length; } }
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
67public override long Length => throw new NotSupportedException();
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
91public override long Length
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
931public override long Length
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\Connection.cs (1)
152public override long Length
System.ServiceModel.Primitives (9)
Internals\System\Runtime\BufferedOutputStream.cs (1)
71public override long Length
Internals\System\Xml\XmlMtomReader.cs (2)
2151public override long Length 2870public override long Length
System\IdentityModel\HashStream.cs (1)
46public override long Length
System\ServiceModel\Channels\BufferedReadStream.cs (1)
111public override long Length
System\ServiceModel\Channels\BufferedWriteStream.cs (1)
125public override long Length
System\ServiceModel\Channels\DelegatingStream.cs (1)
28public override long Length => BaseStream.Length;
System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
160public override long Length
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
441public override long Length
System.Speech (1)
Internal\SeekableReadStream.cs (1)
61public override long Length
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (1)
32public override long Length
454 references to Length
Aspire.Hosting (1)
IInteractionService.cs (1)
592var bytes = new byte[stream.Length];
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
1949long len = input.Length;
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (1)
732public override long Length { get { return _stream.Length; } }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DelegatingStream.cs (1)
85return _stream.Length;
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
ILCompiler.Compiler (17)
Compiler\ObjectWriter\UnixObjectWriter.Aot.cs (1)
289_dwarfBuilder.EmitSectionInfo(section.SymbolName, (ulong)section.SectionStream.Length);
Compiler\ReachabilityInstrumentationFilter.cs (1)
35if (length != (int)reader.BaseStream.Length)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
394section.Header.SizeOfRawData = (uint)section.Stream.Length; 932while (stream.Position < stream.Length)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
130Debug.Assert(source.Length >= 0);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (5)
698section.SectionHeader.Size = (ulong)section.Stream.Length; 701_outputSectionLayout.Add(new OutputSection(section.Name, currentOffset, currentOffset, (ulong)section.Stream.Length)); 705currentOffset += (ulong)section.Stream.Length; 707currentOffset += (ulong)section.RelocationStream.Length; 849Size = (ulong)section.RelocationStream.Length,
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
175_outputSectionLayout.Add(new OutputSection($"{section.SectionName}{section.SegmentName}", section.VirtualAddress, section.FileOffset, (ulong)section.Stream.Length)); 1095public ulong Size => (ulong)dataStream.Length;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (5)
462else if (section.Stream.Length != 0) 487if (s.Stream.Length == 0 && !h.SectionCharacteristics.HasFlag(SectionCharacteristics.ContainsUninitializedData)) 499h.SizeOfRawData = (uint)s.Stream.Length; 555_outputSectionLayout.Add(new OutputSection(h.Name, h.VirtualAddress, h.PointerToRawData, (uint)s.Stream.Length)); 833MemoryStream stream = new((int)section.Stream.Length);
ILCompiler.ReadyToRun (27)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
394section.Header.SizeOfRawData = (uint)section.Stream.Length; 932while (stream.Position < stream.Length)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
130Debug.Assert(source.Length >= 0);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (5)
698section.SectionHeader.Size = (ulong)section.Stream.Length; 701_outputSectionLayout.Add(new OutputSection(section.Name, currentOffset, currentOffset, (ulong)section.Stream.Length)); 705currentOffset += (ulong)section.Stream.Length; 707currentOffset += (ulong)section.RelocationStream.Length; 849Size = (ulong)section.RelocationStream.Length,
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
175_outputSectionLayout.Add(new OutputSection($"{section.SectionName}{section.SegmentName}", section.VirtualAddress, section.FileOffset, (ulong)section.Stream.Length)); 1095public ulong Size => (ulong)dataStream.Length;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (5)
462else if (section.Stream.Length != 0) 487if (s.Stream.Length == 0 && !h.SectionCharacteristics.HasFlag(SectionCharacteristics.ContainsUninitializedData)) 499h.SizeOfRawData = (uint)s.Stream.Length; 555_outputSectionLayout.Add(new OutputSection(h.Name, h.VirtualAddress, h.PointerToRawData, (uint)s.Stream.Length)); 833MemoryStream stream = new((int)section.Stream.Length);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmDataSegment.cs (3)
77public int ContentSize => (int)_stream.Length + Padding; 78public int RawContentSize => (int)_stream.Length; 119return headerSize + (int)_stream.Length + Padding;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSection.cs (1)
71public virtual int ContentSize => (int)ContentReadStream.Length + ContentPrefixSize;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WebcilSection.cs (3)
19public uint Padding => Header.SizeOfRawData - (uint)ContentReadStream.Length; 30return (int)ContentReadStream.Length; 40return (int)ContentReadStream.Length + (int)Padding;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (5)
205uint rawSectionSize = (uint)webcilSection.ContentReadStream.Length; 383MemoryStream destStream = new MemoryStream((int)originalStream.Length); 545Debug.Assert(sectionStream.Position + (long)decoded <= sectionStream.Length); 860Debug.Assert(sectionStream.Length >= 0); 891dstStream.Position = sectionStream.Length + startPos;
illink (1)
Microsoft.AspNetCore.Components.Media (1)
MediaSource.cs (1)
74Length = stream.Length;
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\AutoCloseOnReadCompleteStream.cs (1)
22 public override long Length => _baseStream.Length;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\AutoCloseOnReadCompleteStream.cs (1)
22 public override long Length => _baseStream.Length;
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
268file = new FormFile(_request.Body, section.BaseStreamOffset.GetValueOrDefault(), section.Body.Length, name, fileName); 273file = new FormFile(section.Body, 0, section.Body.Length, name, fileName);
Microsoft.AspNetCore.Http.Results (1)
FileStreamHttpResult.cs (1)
67FileLength = fileStream.Length;
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
36public override long Length => _innerStream.Length;
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\FileStreamResultExecutor.cs (1)
38fileLength = result.FileStream.Length;
Infrastructure\NonDisposableStream.cs (1)
38public override long Length => _innerStream.Length;
Microsoft.AspNetCore.OutputCaching (1)
Streams\OutputCacheStream.cs (1)
33public override long Length => _innerStream.Length;
Microsoft.AspNetCore.RequestDecompression (1)
src\aspnetcore\src\Shared\SizeLimitedStream.cs (1)
28public override long Length => _innerStream.Length;
Microsoft.AspNetCore.ResponseCaching (1)
Streams\ResponseCachingStream.cs (1)
33public override long Length => _innerStream.Length;
Microsoft.AspNetCore.Server.HttpSys (1)
ResponseStream.cs (1)
23public override long Length => _innerStream.Length;
Microsoft.AspNetCore.Server.IIS (2)
Core\HttpUpgradeStream.cs (1)
53return _requestStream.Length;
Core\WrappingStream.cs (1)
31public override long Length => _inner.Length;
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpUpgradeStream.cs (1)
53return _requestStream.Length;
Internal\Infrastructure\StatusCheckWriteStream.cs (1)
40public override long Length => _inner.Length;
Internal\Infrastructure\WrappingStream.cs (1)
30public override long Length => _inner.Length;
Middleware\Internal\LoggingStream.cs (1)
49return _inner.Length;
Microsoft.AspNetCore.WebSockets (1)
AbortStream.cs (1)
41public override long Length => _innerStream.Length;
Microsoft.AspNetCore.WebUtilities (12)
BufferedReadStream.cs (1)
85get { return _inner.Length; }
FileBufferingReadStream.cs (11)
197get { return _buffer.Length; } 261if (_buffer.Position < _buffer.Length || _completelyBuffered) 269if (_bufferLimit.HasValue && _bufferLimit - read < _buffer.Length) 275if (_inMemory && _memoryThreshold - read < _buffer.Length) 284var rentedBuffer = _bytePool.Rent(Math.Min((int)oldBuffer.Length, _maxRentedBufferSize)); 301_buffer.Write(_rentedBuffer.AsSpan(0, (int)oldBuffer.Length)); 338if (_buffer.Position < _buffer.Length || _completelyBuffered) 346if (_bufferLimit.HasValue && _bufferLimit - read < _buffer.Length) 351if (_inMemory && _memoryThreshold - read < _buffer.Length) 359var rentedBuffer = _bytePool.Rent(Math.Min((int)oldBuffer.Length, _maxRentedBufferSize)); 377await _buffer.WriteAsync(_rentedBuffer.AsMemory(0, (int)oldBuffer.Length), cancellationToken);
Microsoft.Build (4)
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
260if (stream.CanSeek && stream.Length > int.MaxValue) 270Write((int)stream.Length);
Logging\BinaryLogger\Postprocessing\StreamExtensions.cs (1)
72length = stream.Length;
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (1)
68public override long Length => _stream.Length;
Microsoft.Build.Framework (1)
BackEnd\BufferedReadStream.cs (1)
42public override long Length { get { return _innerStream.Length; } }
Microsoft.Build.Tasks.CodeAnalysis (5)
src\roslyn\src\Compilers\Core\MSBuildTask\MvidReader.cs (5)
156if (reader.BaseStream.Position + 2 >= reader.BaseStream.Length) 168if (reader.BaseStream.Position + 4 >= reader.BaseStream.Length) 180if (reader.BaseStream.Position + count >= reader.BaseStream.Length) 192if (reader.BaseStream.Position + bytes >= reader.BaseStream.Length) 203if (position >= reader.BaseStream.Length)
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\AssemblyInformation.cs (3)
1029if (sr.BaseStream.Length < PEHeaderPointerOffset + 4 + PEHeaderSize + OptionalPEHeaderSize + 1043sr.BaseStream.Length) 1175if (length > 255 || length <= 0 || sr.BaseStream.Position + length >= sr.BaseStream.Length)
ManifestUtil\TrustInfo.cs (2)
668if (s.Length > 0) 792if (output.Length > 0)
Microsoft.Build.Tasks.Git (1)
GitDataReader\GitRefTableReader.Primitives.cs (1)
24=> stream.Length;
Microsoft.CodeAnalysis (15)
CommandLine\CommonCompiler.cs (1)
402if (stream.Length < LargeObjectHeapLimit)
CvtRes.cs (6)
69while (stream.Position < stream.Length) 201ConfirmSectionValues(rsrc1, stream.Length); 202ConfirmSectionValues(rsrc2, stream.Length); 219if (relocLastAddress > stream.Length) 254if (lastSymAddress > stream.Length) 558resWriter.Write((DWORD)(manifestStream.Length)); //data size
EmbeddedText.cs (1)
217long longLength = stream.Length;
EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
PEWriter\ManagedResource.cs (1)
55var count = (int)(stream.Length - stream.Position);
Text\LargeText.cs (1)
59long longLength = stream.Length;
Text\SourceText.cs (2)
303int length = (int)stream.Length; 1352if (encoding.TryGetMaxCharCount(stream.Length, out int maxCharCount))
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
TemporaryStorage\TemporaryStorageService.cs (1)
163var size = stream.Length;
Workspace\Host\TemporaryStorage\ITemporaryStorageService.cs (1)
39/// <para/> Note: The stream provided must support <see cref="Stream.Length"/>. The stream will also be reset to
Microsoft.Diagnostics.DataContractReader.Contracts (11)
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\NativeReader.cs (10)
40if (start < 0 || start + buffer.Length > _backingStream.Length) 198if (offset >= _backingStream.Length) 211if (offset + 1 >= _backingStream.Length) 220if (offset + 2 >= _backingStream.Length) 230if (offset + 3 >= _backingStream.Length) 257if (offset >= _backingStream.Length) 270if (offset + 1 >= _backingStream.Length) 279if (offset + 2 >= _backingStream.Length) 289if (offset + 3 >= _backingStream.Length) 394int bytesToRead = Math.Min(24, (int)_backingStream.Length - start);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (1)
130Debug.Assert(source.Length >= 0);
Microsoft.DiaSymReader (2)
Utilities\ComStreamWrapper.cs (2)
180pstatstg.cbSize = _stream.Length; 187cbSize = _stream.Length
Microsoft.DotNet.ApiSymbolExtensions (1)
AssemblySymbolLoader.cs (1)
249if (stream.Position >= stream.Length)
Microsoft.DotNet.Build.Tasks.Installers (3)
src\ArReader.cs (1)
32if (stream.Position == stream.Length)
src\ArWriter.cs (1)
33ulong length = (ulong)entry.DataStream.Length;
src\CpioReader.cs (1)
21if (stream.Position == stream.Length)
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
116byte[] peImage = new byte[checked((int)peStream.Length)];
Microsoft.DotNet.TemplateLocator (2)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (2)
62reader = new Utf8JsonReader(span, readCount >= stream.Length, new JsonReaderState(readerOptions)); 105reader = new Utf8JsonReader(span, stream.Position >= stream.Length, reader.CurrentState);
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataContent.cs (1)
188MemoryStream memoryStream = stream.CanSeek ? new((int)Math.Min(stream.Length, int.MaxValue)) : new();
Microsoft.Extensions.AI.Abstractions.Tests (1)
Files\HostedFileClientExtensionsTests.cs (1)
37var buffer = new byte[capturedStream.Length];
Microsoft.Extensions.AI.OpenAI (1)
OpenAIFileDownloadStream.cs (1)
65public override long Length => _innerStream.Length;
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
66long expectedLength = Math.Max(utf8Bom.Length, stream.Length - stream.Position) + 1;
Microsoft.Extensions.FileProviders.Embedded (4)
EmbeddedResourceFileInfo.cs (2)
54_length = stream.Length; 86_length = stream.Length;
Manifest\ManifestFileInfo.cs (2)
46_length = stream.Length; 57_length = stream.Length;
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpRequestBodyReader.cs (1)
85var readLimit = Math.Min(readSizeLimit, (int)streamToReadFrom.Length);
Microsoft.Maui.Controls (1)
StreamWrapper.cs (1)
47 get { return _wrapped.Length; }
Microsoft.ML.AutoML (4)
ColumnInference\TextFileSample.cs (4)
99var fileSize = stream.Length; 167long? multiplier = stream.CanSeek ? (int?)(stream.Length / buf.Length) : null; 168return new TextFileSample(StitchChunks(readCount == stream.Length, buf), 169stream.CanSeek ? (long?)stream.Length : null,
Microsoft.ML.Core (4)
Data\ModelHeader.cs (1)
471if (!TryValidate(ref header, reader.BaseStream.Length - fpMin, out ex))
Utilities\HybridMemoryStream.cs (2)
39public override long Length => MyStream.Length; 80long len = stream.Length;
Utilities\SubsetStream.cs (1)
110return _stream.Length - _offset;
Microsoft.ML.Data (5)
DataLoadSave\Binary\BinaryLoader.cs (2)
2153if (loader._stream.Length != idvSize) 2156loader._stream.Length, idvSize);
DataLoadSave\Binary\CodecFactory.cs (1)
175long remaining = definitionStream.Length - definitionStream.Position;
Transforms\ValueMapping.cs (1)
751long size = rdr.BaseStream.Length;
Utilities\ModelFileUtils.cs (1)
436return _entry.Stream.Length;
Microsoft.ML.FastTree (1)
Utils\StreamExtensions.cs (1)
40public override long Length => _inner.Length;
Microsoft.ML.Tests (1)
ImagesTests.cs (1)
1389public override long Length => _stream.Length;
Microsoft.ML.Tokenizers (1)
SentencepieceModel.cs (1)
309long remaining = stream.Length - stream.Position;
Microsoft.NET.Build.Containers (7)
Registry\DefaultBlobUploadOperations.cs (1)
78httpContent.Headers.ContentLength = content.Length;
Registry\Registry.cs (6)
505_logger.LogTrace("Uploading {0} bytes of content in chunks of {1} bytes.", contents.Length, chunkBackingStore.Length); 507while (contents.Position < contents.Length) 511_logger.LogTrace("Processing next chunk because current position {0} < content size {1}, chunk size: {2}.", contents.Position, contents.Length, chunkBackingStore.Length); 538_logger.LogTrace("Chunked upload is forced in configuration, attempting to upload blob in chunks. Content length: {0}.", contents.Length); 544_logger.LogTrace("Attempting to upload whole blob, content length: {0}.", contents.Length); 549_logger.LogTrace("Errored while uploading whole blob: {0}.\nRetrying with chunked upload. Content length: {1}.", ex, contents.Length);
Microsoft.NET.Build.Tasks (2)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (2)
62reader = new Utf8JsonReader(span, readCount >= stream.Length, new JsonReaderState(readerOptions)); 105reader = new Utf8JsonReader(span, stream.Position >= stream.Length, reader.CurrentState);
Microsoft.NET.HostModel (4)
AppHost\ElfUtils.cs (1)
20if (reader.BaseStream.Length < 16) // EI_NIDENT = 16
AppHost\PEUtils.cs (1)
34if (reader.BaseStream.Length < PEOffsets.DosStub.PESignatureOffset + sizeof(uint))
MachO\FileUtils\StreamBasedMachOFile.cs (1)
22public long Capacity => _stream.Length;
src\runtime\src\coreclr\tools\Common\MachO\MachObjectFile.cs (1)
24if (reader.BaseStream.Length < 256) // Header size
Microsoft.NET.Sdk.WorkloadManifestReader (2)
WorkloadManifestReader.SystemTextJson.cs (2)
62reader = new Utf8JsonReader(span, readCount >= stream.Length, new JsonReaderState(readerOptions)); 105reader = new Utf8JsonReader(span, stream.Position >= stream.Length, reader.CurrentState);
Microsoft.Private.Windows.Core (5)
System\IO\BinaryReaderExtensions.cs (1)
54return stream.Length - stream.Position;
System\IO\StreamExtensions.cs (1)
29int size = checked((int)stream.Length);
Windows\Win32\System\Com\ComManagedStream.cs (3)
39if (_virtualPosition > _dataStream.Length) 139long length = _dataStream.Length; 203cbSize = (ulong)_dataStream.Length,
Microsoft.TemplateEngine.Core (3)
Util\ProcessorState.cs (2)
42if (source.Length < bufferSize) 44bufferSize = (int)source.Length;
Util\StreamProxy.cs (1)
49public override long Length => _currentTargetStream.Length;
Microsoft.TemplateEngine.Utils (1)
InMemoryFileSystem.cs (1)
898public override long Length => _basis.Length;
Microsoft.TestPlatform.PlatformAbstractions (1)
net462\System\ProcessHelper.cs (1)
149if (peHeader > fs.Length - 5)
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Logging\FileLogTraceListener.ReferencedStream.vb (1)
48Return _stream.BaseStream.Length
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
622If reader.BaseStream.Length > 0 Then
Mono.Cecil (12)
Mono.Cecil.Cil\PortablePdb.cs (3)
346 CryptoService.CopyStreamChunk (writer.BaseStream, final_stream.value, buffer, (int)writer.BaseStream.Length); 497 CryptoService.CopyStreamChunk (writer.BaseStream, crypto_stream, buffer, (int)writer.BaseStream.Length); 578 w.WriteInt32 ((int) stream.Length);
Mono.Cecil.Cil\Symbols.cs (1)
1220 if (stream.Length < 4) return false;
Mono.Cecil.PE\BinaryStreamReader.cs (1)
24 get { return (int) BaseStream.Length; }
Mono.Cecil.PE\ImageReader.cs (2)
47 if (BaseStream.Length < 128) 777 var length = (uint) stream.value.Length;
Mono.Cecil\EmbeddedResource.cs (1)
80 var length = (int) stream.Length;
Mono.Cecil\ModuleDefinition.cs (2)
1146 var memory = new MemoryStream (stream.CanSeek ? (int) stream.Length : 0); 1385 var memory = new MemoryStream ((int) self.Length);
Mono.Security.Cryptography\CryptoService.cs (2)
108 CopyStreamChunk (stream, crypto_stream, buffer, (int) (stream.Length - (strong_name_pointer + strong_name_length))); 140 CopyStreamChunk (stream, crypto_stream, buffer, (int) stream.Length);
NuGet.PackageManagement (2)
Utility\StreamUtility.cs (2)
100if (stream.Length != otherStream.Length)
NuGet.Packaging (12)
PackageCreation\Authoring\PackageBuilder.cs (2)
670long fileSize = iconStream.Length; 794long fileSize = readmeStream.Length;
PackageExtraction\StreamExtensions.cs (1)
100size = inputStream.Length;
Signing\Archive\EndOfCentralDirectoryRecord.cs (1)
54var length = reader.BaseStream.Length;
Signing\Archive\ReadOnlyBufferedStream.cs (1)
121_length = new Lazy<long>(() => _stream.Length);
Signing\Archive\SignedPackageArchiveIOUtility.cs (5)
46if (position > reader.BaseStream.Length) 86if (position > reader.BaseStream.Length) 157if (position > reader.BaseStream.Length) 231long startOfLocalFileHeaders = reader.BaseStream.Length; 755ReadAndWriteUntilPosition(reader, writer, reader.BaseStream.Length);
Signing\Archive\SignedPackageArchiveUtility.cs (2)
512SignedPackageArchiveIOUtility.ReadAndHashUntilPosition(reader, hashAlgorithm, reader.BaseStream.Length); 621SignedPackageArchiveIOUtility.ReadAndHashUntilPosition(reader, hashFunc, reader.BaseStream.Length);
NuGet.Protocol (4)
Events\ProtocolDiagnosticsStream.cs (1)
35public override long Length => _baseStream.Length;
LocalRepositories\LocalV2FindPackageByIdResource.cs (1)
178ProtocolDiagnostics.RaiseEvent(new ProtocolDiagnosticNupkgCopiedEvent(_source, destination.Length, id));
LocalRepositories\LocalV3FindPackageByIdResource.cs (1)
224ProtocolDiagnostics.RaiseEvent(new ProtocolDiagnosticNupkgCopiedEvent(_source, destination.Length, id));
Utility\FindPackagesByIdNupkgDownloader.cs (1)
139ProtocolDiagnostics.RaiseEvent(new ProtocolDiagnosticNupkgCopiedEvent(_httpSource.PackageSource, destination.Length, identity.Id));
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
71get { return SourceStream.Length; }
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlVersionHeader.cs (1)
101long length = bamlBinaryWriter.BaseStream.Length;
PresentationCore (41)
MS\Internal\FontCache\FontSource.cs (2)
332memoryFont = new byte[(int)fontStream.Length]; 333PackagingUtilities.ReliableRead(fontStream, memoryFont, 0, (int)fontStream.Length);
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (14)
547return br.ReadChars((int)(memStream.Length - 2)); 561return br.ReadBytes((int)(memStream.Length - previouslyReadBytes)); 565int count = (int)(memStream.Length - 2) / 2; // 2 is the size of one element 573int count = (int)(memStream.Length - 2) / 2; // 2 is the size of one element 581int count = (int)(memStream.Length - 2) / 4; // 2 is the size of one element 589int count = (int)(memStream.Length - 2) / 4; // size of one element 597int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 605int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 613int count = (int)(memStream.Length - 2) / 4; // size of one element 621int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 629int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 639int count = (int)(memStream.Length - 2); // size of one element 647int count = (int)((memStream.Length - 2) / Native.SizeOfDecimal); // size of one element 681byte[] bytestring = br.ReadBytes((int)memStream.Length);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (11)
90System.Diagnostics.Debug.Assert(inkData.Length > isfBase64PrefixLength); 93List<char> charData = new List<char>((int)inkData.Length); 256if (inkdata.Length >= 7) 262if (!fBase64 && inkdata.Length >= 3) 1893if (cumulativeEncodedSize != localStream.Length) 1907if (cumulativeEncodedSize != localStream.Length) 1921if (cumulativeEncodedSize != localStream.Length) 1935if (cumulativeEncodedSize != localStream.Length) 1969if (cumulativeEncodedSize != localStream.Length) 1972if (cumulativeEncodedSize != localStream.Length) 2091if (data.Length < Base64HeaderBytes.Length)
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
136return _obfuscatedStream.Length;
MS\Internal\IO\Packaging\ResponseStream.cs (1)
217return _innerStream.Length;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\IO\SynchronizingStream.cs (1)
224return _baseStream.Length;
System\IO\Packaging\PackWebResponse.cs (3)
240_fullStreamLength = s.Length; // just this stream 418_fullStreamLength = GetResponseStream().Length; 662_parent._fullStreamLength = s.Length;
System\Windows\Ink\StrokeCollection.cs (1)
117int bytesToRead = (int)( stream.Length - stream.Position );
System\Windows\Media\ColorContext.cs (1)
593bufferSize = (int)stm.Length + 1; // If this stream is seekable (most cases), we will only have one buffer alloc and read below
System\Windows\Media\Effects\PixelShader.cs (1)
126int len = (int)source.Length; // only works on seekable streams.
System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1542if (!seekable || ((!bitmapStream.CanWrite) && (bitmapStream.Length <= 1048576)))
System\Windows\Media\Imaging\BitmapDownload.cs (1)
344int percentComplete = (int)Math.Floor(100.0 * (double)entry.outputStream.Length / (double)entry.contentLength);
System\Windows\Media\StreamAsIStream.cs (3)
141if (virtualPosition > dataStream.Length) 311long len = dataStream.Length; 400statstgOut.cbSize = dataStream.Length;
PresentationFramework (20)
MS\Internal\AppModel\BamlStream.cs (1)
92get { return _stream.Length; }
MS\Internal\IO\Packaging\ManagedIStream.cs (1)
114cbSize = _ioStream.Length,
MS\Internal\Navigation\BindStream.cs (1)
125return _stream.Length;
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
730if (_stream.Length == 0)
System\Windows\Documents\XamlToRtfWriter.cs (2)
2210byte[] imageHexBytes = new byte[imageStream.Length * 2]; 2215for (int i = 0; i < imageStream.Length; i++)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (6)
159if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position && 308if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position) 326previousKeyRecord.ValueSize = (int)(_binaryReader.BaseStream.Length - previousKeyRecord.ValuePosition); 337if (record.ValuePosition == _binaryReader.BaseStream.Length) 390if (record.ValuePosition == _binaryReader.BaseStream.Length) 428if (_binaryReader.BaseStream.Position == _binaryReader.BaseStream.Length)
System\Windows\Markup\Baml2006\SharedStream.cs (1)
27Initialize(baseStream, 0, baseStream.Length);
System\Windows\Markup\BamlRecordReader.cs (6)
176return (int)(stream.Length - stream.Position); 203long bytesAvailable = stream.Length - currentPosition; 243if (BinaryReader.BaseStream.Length > 296long bytesAvailable = stream.Length - stream.Position; 1680long bytesAvailable = stream.Length - startPosition; 5578get { return _bamlStream.Length; }
System\Windows\Markup\BamlVersionHeader.cs (1)
101long length = bamlBinaryWriter.BaseStream.Length;
PresentationUI (7)
MS\Internal\Documents\Application\PackageController.cs (2)
129if (doc.Source.Length != doc.Destination.Length)
MS\Internal\Documents\Application\StreamHelper.cs (2)
46long size = source.Length; 68Trace.SafeWrite(Trace.File, "Copied: {0} bytes.", target.Length);
MS\Internal\Documents\Application\StreamProxy.cs (1)
117get { return _proxy.Length; }
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (2)
119/// <see cref="System.IO.Stream.Length"/> 125return _active.Length;
ReachFramework (3)
Packaging\XpsDocument.cs (1)
316if (stream.Length == 0)
Packaging\XpsFixedDocumentReaderWriter.cs (1)
947if (stream.Length > 0)
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
546if (stream.Length > 0)
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (2)
161if (encoding.TryGetMaxCharCount(data.Length, out int maxCharCount) && maxCharCount < LargeObjectHeapLimitInChars) 166(int)data.Length,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
61long length = stream.Length - stream.Position;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
36var length = stream.Length;
ScenarioTests.Common.Tests (1)
TestMockStream.cs (1)
40public override long Length { get { return InnerStream.Length; } }
Security.TransportSecurity.IntegrationTests (1)
Tcp\StreamingTests.4.1.0.cs (1)
166var ms = new MemoryStream((int)stream.Length);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
83public override long Length => _stream.Length;
System.Configuration.ConfigurationManager (7)
System\Configuration\MgmtConfigurationRecord.cs (6)
1024readBuffer = new byte[streamRead.Length]; 1025int count = streamRead.Read(readBuffer, 0, (int)streamRead.Length); 1026if (count != streamRead.Length) 2994readBuffer = new byte[streamRead.Length]; 2995int count = streamRead.Read(readBuffer, 0, (int)streamRead.Length); 2996if (count != streamRead.Length) throw new ConfigurationErrorsException();
System\Configuration\XmlUtilWriter.cs (1)
376_streamLength = writer._baseStream.Length;
System.Data.Common (12)
System\Data\SQLTypes\SQLBytes.cs (5)
136SqlBytesCharsState.Stream => _stream!.Length, 171if (_stream!.Length > x_lMaxLen) 173buffer = new byte[_stream.Length]; 176_stream.ReadExactly(buffer, 0, checked((int)_stream.Length)); 480long lStreamLen = _stream!.Length;
System\Data\SQLTypes\SqlXml.cs (7)
331return _stream.Length; 348ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _stream.Length); 367ArgumentOutOfRangeException.ThrowIfGreaterThan(offset, _stream.Length); 374ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _stream.Length, nameof(offset)); 379lPosition = _stream.Length + offset; 381ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition, _stream.Length, nameof(offset)); 453if (_stream.CanSeek && _lPosition >= _stream.Length)
System.Drawing.Common (4)
System\Drawing\Icon.cs (2)
102_iconData = new byte[(int)stream.Length]; 119_iconData = new byte[(int)stream.Length];
System\Drawing\Image.cs (2)
925image._animatedGifRawData = new byte[(int)dataStream.Length]; 926dataStream.ReadExactly(image._animatedGifRawData, 0, (int)dataStream.Length);
System.Formats.Nrbf (2)
System\Formats\Nrbf\NrbfDecoder.cs (1)
66if (stream.Length - beginning <= SerializedStreamHeaderRecord.Size)
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (1)
228return (reader.BaseStream.Length - reader.BaseStream.Position) > requiredBytes;
System.Formats.Tar (6)
System\Formats\Tar\TarEntry.cs (1)
121public long Length => _header._gnuSparseDataStream?.Length ?? (_header._dataStream is not null ? _header._dataStream.Length : _header._size);
System\Formats\Tar\TarHeader.Read.cs (1)
386if (archiveStream.CanSeek && _size > archiveStream.Length - archiveStream.Position)
System\Formats\Tar\TarHeader.Write.cs (1)
675long length = _dataStream.Length;
System\Formats\Tar\TarReader.cs (3)
113if (_archiveStream.CanSeek && _archiveStream.Length == 0) 155if (_archiveStream.CanSeek && _archiveStream.Length == 0) 225if (_archiveStream.CanSeek && _archiveStream.Length == _archiveStream.Position)
System.IO.Compression (16)
System\IO\Compression\ZipArchive.Async.cs (2)
104if (zipArchive._archiveStream.Length == 0) 296if (_centralDirectoryStart > _archiveStream.Length)
System\IO\Compression\ZipArchive.cs (5)
156if (_archiveStream.Length == 0) 455if (_archiveStream.Length == 0) 759if (_centralDirectoryStart > _archiveStream.Length) 783if (zip64EOCDOffset < 0 || zip64EOCDOffset > _archiveStream.Length) 897if (_mode == ZipArchiveMode.Update && _archiveStream.Position != _archiveStream.Length)
System\IO\Compression\ZipArchiveEntry.Async.cs (1)
189if (_offsetOfLocalHeader > _archive.ArchiveStream.Length)
System\IO\Compression\ZipArchiveEntry.cs (3)
637if (_offsetOfLocalHeader > _archive.ArchiveStream.Length) 1480if (_offsetOfLocalHeader > _archive.ArchiveStream.Length) 1497_compressedSize > _archive.ArchiveStream.Length - offsetOfCompressedData)
System\IO\Compression\ZipBlocks.cs (3)
690if (stream.Length < stream.Position + filenameLength + extraFieldLength) 1016if (furtherReads.CanSeek && bytesToRead > furtherReads.Length - furtherReads.Position) 1149if (stream.Position + commentLength > stream.Length)
System\IO\Compression\ZipCustomStreams.cs (2)
47return _baseStream.Length; 534return _baseStream.Length;
System.IO.Packaging (10)
System\IO\Packaging\IgnoreFlushAndCloseStream.cs (1)
65return _stream.Length;
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
484checked { length += _dir.GetStream(pieceNumber).Length; }
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (3)
177if (offset < checked(currentPieceInfo.StartOffset + currentPieceInfo.Stream.Length)) 358long newStartOffset = checked(currentPieceStreamInfo.StartOffset + currentPieceStreamInfo.Stream.Length); 414if (_lastPieceIndex == 0 && _pieceStreamInfoList[0].Stream.Length == 0)
System\IO\Packaging\ZipPackage.cs (3)
368if (s.Length == 0) 375if (s.Length != 0) 382if (s.Length != 0)
System\IO\Packaging\ZipWrappingStream.cs (2)
128return _baseStream.CanSeek ? _baseStream.Length : _zipArchiveEntry.Length; 129return _baseStream.Length;
System.Memory.Data (1)
System\BinaryData.cs (1)
280long longLength = stream.Length - stream.Position;
System.Net.Http (4)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
35get { return _innerStream.Length; }
System\Net\Http\MultipartContent.cs (2)
416_length += stream.Length; 566long curLength = curStream.Length;
System\Net\Http\StreamContent.cs (1)
81length = _content.Length - _start;
System.Net.Http.Json (1)
System\Net\Http\Json\LengthLimitReadStream.cs (1)
89public override long Length => _innerStream.Length;
System.Net.Mail (1)
System\Net\DelegatedStream.cs (1)
37return _stream.Length;
System.Net.Requests (3)
System\Net\FileWebResponse.cs (1)
36_contentLength = _stream.Length;
System\Net\FtpDataStream.cs (1)
178return _stream.Length;
System\Net\NetworkStreamWrapper.cs (1)
121return Stream.Length;
System.Net.Security (2)
System\Net\Security\NegotiateStream.cs (1)
276public override long Length => InnerStream.Length;
System\Net\Security\SslStream.cs (1)
679public override long Length => InnerStream.Length;
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
35get { return _innerStream.Length; }
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
188return _stream!.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
450return _strategy.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
44long len = _strategy.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (1)
33public override long Length => _strategy.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
132long length = Length; 1103return _stream.Length;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
171if (store.CanSeek && store.Length > 4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (3)
154if (dPos < 0 || dPos >= _store.BaseStream.Length - _dataSectionOffset) 164long nextData = (index < _numResources - 1) ? sortedDataPositions[index + 1] + _dataSectionOffset : _store.BaseStream.Length; 166Debug.Assert(len >= 0 && len <= (int)_store.BaseStream.Length - dataPos + _dataSectionOffset, "Length was negative or outside the bounds of the file!");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (5)
316if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) 414if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) 434if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) 455if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) 709if (len > _store.BaseStream.Length)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
455long length = stream.Length - stream.Position;
System.Private.DataContractSerialization (1)
System\Xml\EncodingStreamWrapper.cs (1)
711public override long Length { get { return _stream.Length; } }
System.Private.Windows.Core (5)
System\IO\BinaryReaderExtensions.cs (1)
54return stream.Length - stream.Position;
System\IO\StreamExtensions.cs (1)
29int size = checked((int)stream.Length);
Windows\Win32\System\Com\ComManagedStream.cs (3)
39if (_virtualPosition > _dataStream.Length) 139long length = _dataStream.Length; 203cbSize = (ulong)_dataStream.Length,
System.Private.Xml (2)
System\Xml\Core\XmlReader.cs (1)
1750long len = input.Length;
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
307int size = checked((int)value.Length);
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
57long maxSize = stream.Length - stream.Position;
System\Reflection\PortableExecutable\PEBinaryReader.cs (1)
28Debug.Assert(size >= 0 && size <= (stream.Length - stream.Position));
System\Reflection\PortableExecutable\PEReader.cs (1)
320Debug.Assert(imageStart >= 0 && imageStart <= stream.Length);
System.Resources.Extensions (9)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
597if (s.Length > int.MaxValue) 601writer.Write((int)s.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (5)
316if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) 414if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) 434if (dataOffset < 0 || dataOffset >= _store.BaseStream.Length - _dataSectionOffset) 455if (dataPos < 0 || dataPos >= _store.BaseStream.Length - _dataSectionOffset) 709if (len > _store.BaseStream.Length)
System\Resources\Extensions\PreserializedResourceWriter.cs (2)
227if (stream.Length > int.MaxValue) 232writer.Write7BitEncodedInt((int)stream.Length);
System.Resources.Writer (2)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
597if (s.Length > int.MaxValue) 601writer.Write((int)s.Length);
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
455CoseHelpers.WriteByteStringLength(toBeSignedBuilder, (ulong)(contentStream.Length - contentStream.Position)); 491CoseHelpers.WriteByteStringLength(toBeSignedBuilder, (ulong)(content.Length - content.Position));
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (1)
84if ((decryptedContent == null) || (decryptedContent.Length == 0))
System.ServiceModel.Primitives (3)
Internals\System\Xml\XmlMtomReader.cs (2)
1089get { return stream.CanSeek ? stream.Length : 0; } 1096MemoryStream bufferedStream = stream.CanSeek ? new MemoryStream((int)stream.Length) : new MemoryStream();
System\ServiceModel\Channels\DelegatingStream.cs (1)
28public override long Length => BaseStream.Length;
System.Speech (8)
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
120if (stream.Position + 8 >= stream.Length)
Internal\SapiInterop\SpStreamWrapper.cs (2)
18_endOfStreamPosition = stream.Length; 98cbSize = _stream.Length
Internal\SeekableReadStream.cs (1)
64get { return _baseStream.Length; }
Internal\Synthesis\AudioBase.cs (2)
123byte[] data = new byte[(int)audio._stream.Length]; 157if (audio._stream.Position + 8 >= audio._stream.Length)
Internal\Synthesis\EngineSite.cs (1)
175int cLen = (int)stream.Length;
Recognition\Grammar.cs (1)
627_cfgData = Helpers.ReadStreamToByteArray(stream, (int)stream.Length);
System.Text.Encoding.CodePages (1)
System\Text\BaseCodePageEncoding.cs (1)
300m_dataSize = (int)(s_codePagesEncodingDataStream.Length - pCodePageIndex->Offset - m_codePageHeader.Length);
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.Parse.cs (2)
810long expectedLength = Math.Max(utf8Bom.Length, stream.Length - stream.Position) + 1; 893long expectedLength = Math.Max(utf8BomLength, stream.Length - stream.Position) + 1;
System.Windows.Extensions (1)
System\Media\SoundPlayer.cs (1)
314int streamLen = (int)_stream.Length;
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
73_length = checked((int)ms.Length);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\BinaryEditor.cs (1)
47int byteCount = (int)(stream.Length - stream.Position);
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
24int size = (int)(stream.Length - stream.Position);
System\Windows\Forms\Design\ImageListImageEditor.cs (2)
102byte[] buffer = new byte[stream.Length]; 103stream.ReadExactly(buffer, 0, (int)stream.Length);
vstest.console (1)
CommandLine\AssemblyMetadataProvider.cs (1)
244if (peHeader > fs.Length - 5)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\CommandLine\AssemblyMetadataProvider.cs (1)
244if (peHeader > fs.Length - 5)