Skip to main content

Class BufferedWriteStream

Wraps another stream with a timed buffer.

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

Methods​

Dispose(Boolean)​

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

WriteHeader(UInt16, UInt32, Boolean)​

View Source​
Declaration
public override void WriteHeader(ushort seq, uint timestamp, bool missed)
Parameters​
TypeName
System.UInt16seq
System.UInt32timestamp
System.Booleanmissed

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

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

System.Threading.Tasks.Task

Parameters​
TypeName
System.Byte[]data
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 Task ClearAsync(CancellationToken cancelToken)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Threading.CancellationTokencancelToken

Implements​

  • System.IDisposable