|
static FileStreamStrategy | ChooseStrategy (FileStream fileStream, SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync) |
|
static FileStreamStrategy | ChooseStrategy (FileStream fileStream, string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) |
|
static bool | IsIoRelatedException (Exception e) |
|
static void | ValidateArguments (string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, long preallocationSize) |
|
static void | ValidateArgumentsForPreallocation (FileMode mode, FileAccess access) |
|
static void | SerializationGuard (FileAccess access) |
|
static void | FlushToDisk (SafeFileHandle handle) |
|
static long | Seek (SafeFileHandle handle, long offset, SeekOrigin origin, bool closeInvalidHandle=false) |
|
static void | ThrowInvalidArgument (SafeFileHandle handle) |
|
static int | GetLastWin32ErrorAndDisposeHandleIfInvalid (SafeFileHandle handle) |
|
static void | Lock (SafeFileHandle handle, bool canWrite, long position, long length) |
|
static void | Unlock (SafeFileHandle handle, long position, long length) |
|
static void | SetFileLength (SafeFileHandle handle, long length) |
|
static unsafe bool | TrySetFileLength (SafeFileHandle handle, long length, out int errorCode) |
|
static unsafe int | ReadFileNative (SafeFileHandle handle, Span< byte > bytes, NativeOverlapped *overlapped, out int errorCode) |
|
static unsafe async Task | AsyncModeCopyToAsync (SafeFileHandle handle, bool canSeek, long filePosition, Stream destination, int bufferSize, CancellationToken cancellationToken) |
|
Definition at line 11 of file FileStreamHelpers.cs.