Method GetSourceAsSeekableStreamAsync
GetSourceAsSeekableStreamAsync(bool, long)
Gets the source as a seekable Stream.
Declaration
public ValueTask<Stream> GetSourceAsSeekableStreamAsync(bool preferInMemory, long maxInMemoryCopySize)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | preferInMemory | If true, a memory stream will always be returned as long as the source is smaller than |
| long | maxInMemoryCopySize | The maximum number of bytes that will be copied from the source stream to a memory stream. If the source stream exceeds this size, it will be copied to a new work file instead. |
Returns
| Type | Description |
|---|---|
| ValueTask<Stream> |