Skip to main content

Class SodiumDecryptStream

Decrypts an RTP frame using libsodium.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SodiumDecryptStream : AudioOutStream, IDisposable

Properties​

CanRead​

View Source​
Declaration
public override bool CanRead { get; }

CanSeek​

View Source​
Declaration
public override bool CanSeek { get; }

CanWrite​

View Source​
Declaration
public override bool CanWrite { get; }

Methods​

WriteAsync(Byte[], Int32, Int32, CancellationToken)​

View Source​
Declaration
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancelToken)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Byte[]buffer
System.Int32offset
System.Int32count
System.Threading.CancellationTokencancelToken

FlushAsync(CancellationToken)​

View Source​
Declaration
public override async Task FlushAsync(CancellationToken cancelToken)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Threading.CancellationTokencancelToken

ClearAsync(CancellationToken)​

View Source​
Declaration
public override async Task ClearAsync(CancellationToken cancelToken)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Threading.CancellationTokencancelToken

Dispose(Boolean)​

View Source​
Declaration
protected override void Dispose(bool disposing)
Parameters​
TypeName
System.Booleandisposing

Implements​

  • System.IDisposable