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

◆ ReadAsync() [3/3]

override ValueTask< int > System.Net.DelegatedStream.ReadAsync ( Memory< byte > buffer,
CancellationToken cancellationToken = default(CancellationToken) )
inlinevirtualinherited

Reimplemented from System.IO.Stream.

Definition at line 129 of file DelegatedStream.cs.

130 {
131 if (!CanRead)
132 {
133 throw new NotSupportedException(System.SR.ReadNotSupported);
134 }
136 }
Task< int > ReadAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:762
static string ReadNotSupported
Definition SR.cs:144
Definition SR.cs:7

References System.Net.DelegatedStream._stream, System.buffer, System.cancellationToken, System.Net.DelegatedStream.CanRead, System.IO.Stream.ReadAsync(), and System.SR.ReadNotSupported.