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

◆ ReadScatterAtOffsetSingleSyscallAsync()

static async ValueTask< long > System.IO.RandomAccess.ReadScatterAtOffsetSingleSyscallAsync ( SafeFileHandle handle,
MemoryHandle[] handlesToDispose,
IntPtr segmentsPtr,
long fileOffset,
int totalBytes,
CancellationToken cancellationToken )
inlinestaticprivate

Definition at line 611 of file RandomAccess.cs.

612 {
613 try
614 {
616 }
617 finally
618 {
620 }
621 }
static unsafe void CleanupScatterGatherBuffers(MemoryHandle[] handlesToDispose, IntPtr segmentsPtr)
static Memory< byte > long CancellationToken cancellationToken
static Memory< byte > long fileOffset
static unsafe ValueTask< int > ReadFileScatterAsync(SafeFileHandle handle, IntPtr segmentsPtr, int bytesToRead, long fileOffset, CancellationToken cancellationToken)

References System.IO.RandomAccess.cancellationToken, System.IO.RandomAccess.CleanupScatterGatherBuffers(), System.IO.RandomAccess.fileOffset, System.handle, and System.IO.RandomAccess.ReadFileScatterAsync().

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