24 references to FileStreamHelpers
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (2)
477FileStreamHelpers.CheckFileCall(Interop.Sys.PosixFAdvise(this, 0, 0, fadv), path, 590FileStreamHelpers.CheckFileCall(result, Path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
168Strategies.FileStreamHelpers.ValidateArguments(path, mode, access, share, bufferSize: 0, options, preallocationSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (8)
51_strategy = FileStreamHelpers.ChooseStrategy(this, safeHandle, access, bufferSize, safeHandle.IsAsync); 96_strategy = FileStreamHelpers.ChooseStrategy(this, handle, access, bufferSize, handle.IsAsync); 103_strategy = FileStreamHelpers.ChooseStrategy(this, handle, access, bufferSize, handle.IsAsync); 186FileStreamHelpers.ValidateArgumentsForPreallocation(options.Mode, options.Access); 198FileStreamHelpers.SerializationGuard(options.Access); 200_strategy = FileStreamHelpers.ChooseStrategy( 206FileStreamHelpers.ValidateArguments(path, mode, access, share, bufferSize, options, preallocationSize); 208_strategy = FileStreamHelpers.ChooseStrategy(this, path, mode, access, share, bufferSize, options, preallocationSize, unixCreateMode: null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (1)
84if (FileStreamHelpers.AreInvalid(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (1)
281FileStreamHelpers.FlushToDisk(handle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (5)
23FileStreamHelpers.CheckFileCall(Interop.Sys.FTruncate(handle, length), handle.Path); 53FileStreamHelpers.CheckFileCall(result, handle.Path); 101return FileStreamHelpers.CheckFileCall(result, handle.Path); 140FileStreamHelpers.CheckFileCall(bytesWritten, handle.Path); 217FileStreamHelpers.CheckFileCall(bytesWritten, handle.Path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
128catch (Exception e) when (!disposing && FileStreamHelpers.IsIoRelatedException(e))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (5)
30_filePosition = FileStreamHelpers.Seek(handle, 0, SeekOrigin.Current); 104FileStreamHelpers.Seek(_fileHandle, _filePosition, SeekOrigin.Begin); 141FileStreamHelpers.FlushToDisk(_fileHandle); 175internal sealed override void Lock(long position, long length) => FileStreamHelpers.Lock(_fileHandle, CanWrite, position, length); 177internal sealed override void Unlock(long position, long length) => FileStreamHelpers.Unlock(_fileHandle, position, length);