Search Results for

    Show / Hide Table of Contents

    Class StreamExtensions

    The stream extensions.

    Inheritance
    System.Object
    StreamExtensions
    Namespace: DisCatSharp.VoiceNext
    Assembly: DisCatSharp.VoiceNext.dll
    Syntax
    public static class StreamExtensions

    Methods

    | Improve this Doc View Source

    CopyToAsync(Stream, VoiceTransmitSink, Nullable<Int32>, CancellationToken)

    Asynchronously reads the bytes from the current stream and writes them to the specified VoiceTransmitSink.

    Declaration
    public static async Task CopyToAsync(this Stream source, VoiceTransmitSink destination, int? bufferSize = null, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    System.IO.Stream source

    The source System.IO.Stream

    VoiceTransmitSink destination

    The target VoiceTransmitSink

    System.Nullable<System.Int32> bufferSize

    The size, in bytes, of the buffer. This value must be greater than zero. If null, defaults to the packet size specified by destination.

    System.Threading.CancellationToken cancellationToken

    The token to monitor for cancellation requests.

    Returns
    Type Description
    System.Threading.Tasks.Task
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems