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

◆ ReadScatterAtOffsetAsync()

static ValueTask< long > System.IO.RandomAccess.ReadScatterAtOffsetAsync ( SafeFileHandle handle,
IReadOnlyList< Memory< byte > > buffers,
long fileOffset,
CancellationToken cancellationToken )
inlinestaticprivate

Definition at line 598 of file RandomAccess.cs.

599 {
600 if (!handle.IsAsync)
601 {
603 }
605 {
607 }
609 }
static async ValueTask< long > ReadScatterAtOffsetMultipleSyscallsAsync(SafeFileHandle handle, IReadOnlyList< Memory< byte > > buffers, long fileOffset, CancellationToken cancellationToken)
static ValueTask< long > ScheduleSyncReadScatterAtOffsetAsync(SafeFileHandle handle, IReadOnlyList< Memory< byte > > buffers, long fileOffset, CancellationToken cancellationToken)
static async ValueTask< long > ReadScatterAtOffsetSingleSyscallAsync(SafeFileHandle handle, MemoryHandle[] handlesToDispose, IntPtr segmentsPtr, long fileOffset, int totalBytes, CancellationToken cancellationToken)
static bool CanUseScatterGatherWindowsAPIs(SafeFileHandle handle)
static Memory< byte > long CancellationToken cancellationToken
static Memory< byte > long fileOffset

References System.buffers, System.IO.RandomAccess.cancellationToken, System.IO.RandomAccess.CanUseScatterGatherWindowsAPIs(), System.IO.RandomAccess.fileOffset, System.handle, System.IO.RandomAccess.ReadScatterAtOffsetMultipleSyscallsAsync(), System.IO.RandomAccess.ReadScatterAtOffsetSingleSyscallAsync(), and System.IO.RandomAccess.ScheduleSyncReadScatterAtOffsetAsync().

Referenced by System.IO.RandomAccess.ReadAsync().