24 references to FileStreamHelpers
System.Private.CoreLib (24)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (2)
477
FileStreamHelpers
.CheckFileCall(Interop.Sys.PosixFAdvise(this, 0, 0, fadv), path,
590
FileStreamHelpers
.CheckFileCall(result, Path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
168
Strategies.
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);
186
FileStreamHelpers
.ValidateArgumentsForPreallocation(options.Mode, options.Access);
198
FileStreamHelpers
.SerializationGuard(options.Access);
200
_strategy =
FileStreamHelpers
.ChooseStrategy(
206
FileStreamHelpers
.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)
84
if (
FileStreamHelpers
.AreInvalid(value))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (1)
281
FileStreamHelpers
.FlushToDisk(handle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (5)
23
FileStreamHelpers
.CheckFileCall(Interop.Sys.FTruncate(handle, length), handle.Path);
53
FileStreamHelpers
.CheckFileCall(result, handle.Path);
101
return
FileStreamHelpers
.CheckFileCall(result, handle.Path);
140
FileStreamHelpers
.CheckFileCall(bytesWritten, handle.Path);
217
FileStreamHelpers
.CheckFileCall(bytesWritten, handle.Path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
128
catch (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);
104
FileStreamHelpers
.Seek(_fileHandle, _filePosition, SeekOrigin.Begin);
141
FileStreamHelpers
.FlushToDisk(_fileHandle);
175
internal sealed override void Lock(long position, long length) =>
FileStreamHelpers
.Lock(_fileHandle, CanWrite, position, length);
177
internal sealed override void Unlock(long position, long length) =>
FileStreamHelpers
.Unlock(_fileHandle, position, length);