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

◆ ReadAsync() [1/2]

static ValueTask< long > System.IO.RandomAccess.ReadAsync ( SafeFileHandle handle,
IReadOnlyList< Memory< byte > > buffers,
long fileOffset,
CancellationToken cancellationToken = default(CancellationToken) )
inlinestatic

Definition at line 124 of file RandomAccess.cs.

125 {
128 if (cancellationToken.IsCancellationRequested)
129 {
131 }
133 }
static void ValidateInput(SafeFileHandle handle, long fileOffset)
static ValueTask< long > ReadScatterAtOffsetAsync(SafeFileHandle handle, IReadOnlyList< Memory< byte > > buffers, long fileOffset, CancellationToken cancellationToken)
static Memory< byte > long CancellationToken cancellationToken
static Memory< byte > long fileOffset
static ValueTask FromCanceled(CancellationToken cancellationToken)
Definition ValueTask.cs:180

References System.buffers, System.IO.RandomAccess.cancellationToken, System.IO.RandomAccess.fileOffset, System.Threading.Tasks.ValueTask< TResult >.FromCanceled(), System.handle, System.IO.RandomAccess.ReadScatterAtOffsetAsync(), and System.IO.RandomAccess.ValidateInput().