FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    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 maxInMemoryCopySize. If false, different stream types can be returned depending on what the source is, but it will always be a seekable stream.

    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>
    © Singulink. All rights reserved.