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

◆ ReadScatterAtOffsetMultipleSyscallsAsync()

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

Definition at line 658 of file RandomAccess.cs.

659 {
660 long total = 0L;
662 for (int i = 0; i < buffersCount; i++)
663 {
666 total += num;
667 if (num != buffer.Length)
668 {
669 break;
670 }
671 }
672 return total;
673 }
static Memory< byte > buffer
static ValueTask< int > ReadAtOffsetAsync(SafeFileHandle handle, Memory< byte > buffer, long fileOffset, CancellationToken cancellationToken, OSFileStreamStrategy strategy=null)
static Memory< byte > long CancellationToken cancellationToken
static Memory< byte > long fileOffset

References System.IO.RandomAccess.buffer, System.buffers, System.IO.RandomAccess.cancellationToken, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.IO.RandomAccess.fileOffset, System.handle, System.L, and System.IO.RandomAccess.ReadAtOffsetAsync().

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