Base:
property
Length
System.IO.Stream.Length
1 override of Length
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (1)
175public override long Length
55 references to Length
dotnet-user-jwts (3)
Helpers\DevJwtCliHelpers.cs (1)
80if (launchSettingsFileStream.Length > 0)
Helpers\JwtStore.cs (1)
31if (fileStream.Length > 0)
Helpers\SigningKeysHandler.cs (1)
69if (secretsFileStream.Length > 0)
illink (1)
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\ResponseBody.cs (1)
640var length = fileStream.Length; // Expensive, only do it once
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
550return fileStream.Length;
Microsoft.AspNetCore.WebUtilities (1)
FileBufferingWriteStream.cs (1)
76public override long Length => PagedByteBuffer.Length + (FileStream?.Length ?? 0);
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1904stream.Position = stream.Length;
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
275if (fileStream.Length > int.MaxValue)
Microsoft.Build.Engine.UnitTests (2)
FileLogger_Tests.cs (2)
273content = new byte[stream.Length]; 275for (int i = 0; i < stream.Length; i++)
Microsoft.Build.Tasks.Core (1)
BootstrapperUtil\ResourceUpdater.cs (1)
101fileLength = (int)fs.Length;
Microsoft.CodeAnalysis (1)
EncodedStringText.cs (1)
199int length = (int)stream.Length;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\EncodedStringText.cs (1)
199int length = (int)stream.Length;
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\EncodedStringText.cs (1)
199int length = (int)stream.Length;
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateMD5SumsFile.cs (1)
39installedSize += (ulong)fileStream.Length;
Microsoft.DotNet.SignCheckLibrary (3)
Verification\AuthentiCodeVerifier.cs (1)
112if (fs.Length < fs.Position + securityEntry.Length)
Verification\LZMAUtils.cs (1)
39decoder.Code(inFile, outFile, inFile.Length, fileLength, progress: null);
Verification\SignatureVerificationManager.cs (1)
241if (stream.Length > 4)
Microsoft.DotNet.SignTool (2)
src\ContentUtil.cs (1)
32if (stream.Length == 0)
src\ZipData.cs (1)
240entryStream.SetLength(signedStream.Length);
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Storage\DiskBasedResponseCache.cs (1)
127byte[] buffer = new byte[stream.Length];
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
304long fileLength = fs.Length;
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
486long fileLength = fs.Length;
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipeBase.cs (2)
544Log("View saved in {0} bytes", stream.Length); 595Log("View saved in {0} bytes", stream.Length);
Microsoft.ML.Tests (3)
ImagesTests.cs (3)
1353MemoryStream ms = new MemoryStream((int)stream.Length); 1354for (int i = 0; i < stream.Length; i++) 1362for (int i = 0; i < stream.Length; i++)
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
720long fileLength = fs.Length;
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (3)
482Return m_file.Length 564If BaseZeroPosition > m_file.Length Then 571m_eof = (m_position >= m_file.Length)
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (1)
54m_eof = (m_file.Length = 0) 'Don't do a Peek here or it will buffer data, causing side-effects with the Lock function.
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
67lEndOfFile = m_file.Length
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (2)
167m_eof = (m_position >= m_file.Length) 315If m_file.Position >= m_file.Length Then
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
50long length = _sourceStream.Length;
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (1)
179return _fs.Length;
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
244long fileSize = fileStream.Length;
System.Net.WebClient (4)
System\Net\WebClient.cs (4)
526_contentLength = fs.Length + formHeaderBytes.Length + boundaryBytes.Length; 527buffSize = (int)Math.Min(DefaultCopyBufferLength, fs.Length); 539_contentLength = fs.Length; 540buffSize = (int)Math.Min(DefaultCopyBufferLength, fs.Length);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (4)
43if (fs.Length == 0 || fs.Length > maxFileSize) 45throw new IOException(fs.Length == 0 ? SR.IO_InvalidReadLength : SR.IO_FileTooLong); 48byte[] bytes = new byte[fs.Length];
System.Reflection.Metadata (2)
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
75if (fileStream.Length == 0) 81fileStream, null, fileStream.Length, MemoryMappedFileAccess.Read, HandleInheritability.None, true);
System.Security.Cryptography (2)
src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (1)
42int length = (int)Math.Min(int.MaxValue, fileStream.Length);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
612long streamLength = stream.Length;
System.Windows.Forms (3)
System\Resources\ResxFileRef.Converter.cs (2)
122temp = new byte[fileStream.Length]; 123fileStream.ReadExactly(temp, 0, (int)fileStream.Length);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
575_contentLength = (int)_fileStream.Length;