Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteAtOffsetAsync()

static ValueTask System.IO.RandomAccess.WriteAtOffsetAsync ( SafeFileHandle handle,
ReadOnlyMemory< byte > buffer,
long fileOffset,
CancellationToken cancellationToken,
OSFileStreamStrategy strategy = null )
inlinestaticpackage

Definition at line 435 of file RandomAccess.cs.

436 {
437 if (handle.IsAsync)
438 {
440 if (overlappedValueTaskSource != null)
441 {
443 }
444 if (num == 0)
445 {
447 }
448 return ValueTask.FromException(Win32Marshal.GetExceptionForWin32Error(num, handle.Path));
449 }
451 }
static Memory< byte > buffer
static Memory< byte > long CancellationToken OSFileStreamStrategy strategy
static Memory< byte > long CancellationToken cancellationToken
static Memory< byte > long fileOffset
static ValueTask ScheduleSyncWriteAtOffsetAsync(SafeFileHandle handle, ReadOnlyMemory< byte > buffer, long fileOffset, CancellationToken cancellationToken, OSFileStreamStrategy strategy)
static ValueTask CompletedTask
Definition ValueTask.cs:71
static ValueTask FromException(Exception exception)
Definition ValueTask.cs:190

References System.IO.RandomAccess.buffer, System.IO.RandomAccess.cancellationToken, System.Threading.Tasks.ValueTask< TResult >.CompletedTask, System.IO.RandomAccess.fileOffset, System.Threading.Tasks.ValueTask< TResult >.FromException(), System.IO.Win32Marshal.GetExceptionForWin32Error(), System.handle, System.IO.RandomAccess.ScheduleSyncWriteAtOffsetAsync(), and System.IO.RandomAccess.strategy.

Referenced by System.IO.File.WriteAllBytesAsync(), System.IO.Strategies.OSFileStreamStrategy.WriteAsync(), System.IO.RandomAccess.WriteAsync(), and System.IO.RandomAccess.WriteGatherAtOffsetMultipleSyscallsAsync().