Class StreamExtensions
Inheritance
StreamExtensions
Assembly: Net3-Proxy.dll
Syntax
public static class StreamExtensions
Methods
|
Improve this Doc
View Source
CopyToAsync(Stream, Stream)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task CopyToAsync(this Stream src, Stream destination)
Parameters
Returns
|
Improve this Doc
View Source
CopyToAsync(Stream, Stream, Int32)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task CopyToAsync(this Stream src, Stream destination, int bufferSize)
Parameters
Returns
|
Improve this Doc
View Source
CopyToAsync(Stream, Stream, Int32, CancellationToken)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task CopyToAsync(this Stream src, Stream destination, int bufferSize, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Stream |
src |
|
Stream |
destination |
|
Int32 |
bufferSize |
|
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
ReadAsync(Stream, Byte[], Int32, Int32)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task<int> ReadAsync(this Stream src, byte[] buffer, int offset, int count)
Parameters
Returns
Type |
Description |
Task<Int32> |
|
|
Improve this Doc
View Source
ReadAsync(Stream, Byte[], Int32, Int32, CancellationToken)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task<int> ReadAsync(this Stream src, byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Stream |
src |
|
Byte[] |
buffer |
|
Int32 |
offset |
|
Int32 |
count |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<Int32> |
|
|
Improve this Doc
View Source
WriteAsync(Stream, Byte[], Int32, Int32)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task WriteAsync(this Stream src, byte[] buffer, int offset, int count)
Parameters
Returns
|
Improve this Doc
View Source
WriteAsync(Stream, Byte[], Int32, Int32, CancellationToken)
Declaration
[ComVisible(false)]
[HostProtection(SecurityAction.LinkDemand, ExternalThreading = true)]
public static Task WriteAsync(this Stream src, byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
Stream |
src |
|
Byte[] |
buffer |
|
Int32 |
offset |
|
Int32 |
count |
|
CancellationToken |
cancellationToken |
|
Returns