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

◆ WriteAsync() [3/3]

override ValueTask System.Net.DelegatedStream.WriteAsync ( ReadOnlyMemory< byte > buffer,
CancellationToken cancellationToken = default(CancellationToken) )
inlinevirtualinherited

Reimplemented from System.IO.Stream.

Definition at line 174 of file DelegatedStream.cs.

175 {
176 if (!CanWrite)
177 {
178 throw new NotSupportedException(System.SR.WriteNotSupported);
179 }
181 }
Task WriteAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:914
static string WriteNotSupported
Definition SR.cs:146
Definition SR.cs:7

References System.Net.DelegatedStream._stream, System.buffer, System.cancellationToken, System.Net.DelegatedStream.CanWrite, System.IO.Stream.WriteAsync(), and System.SR.WriteNotSupported.