Interface IStreamHelper
Assembly: MediaBrowser.Model.dll
public interface IStreamHelper
Methods
Declaration
Task CopyToAsync(Stream source, PipeWriter writer, int bufferSize, int emptyReadLimit, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IO.Stream |
source |
|
System.IO.Pipelines.PipeWriter |
writer |
|
System.Int32 |
bufferSize |
|
System.Int32 |
emptyReadLimit |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task CopyToAsync(Stream source, PipeWriter writer, int bufferSize, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IO.Stream |
source |
|
System.IO.Pipelines.PipeWriter |
writer |
|
System.Int32 |
bufferSize |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task CopyToAsyncWithMaxLength(Stream source, PipeWriter writer, long copyLength, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IO.Stream |
source |
|
System.IO.Pipelines.PipeWriter |
writer |
|
System.Int64 |
copyLength |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task CopyUntilCancelled(Stream source, Stream target, int bufferSize, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IO.Stream |
source |
|
System.IO.Stream |
target |
|
System.Int32 |
bufferSize |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods