Table of Contents

Class ByteStreamWriter

Namespace
LiveKit

Writer for an outgoing byte data stream.

public class ByteStreamWriter
Inheritance
ByteStreamWriter
Inherited Members
Extension Methods

Properties

Info

public ByteStreamInfo Info { get; }

Property Value

ByteStreamInfo

Methods

Close(string)

Closes the stream.

public ByteStreamWriter.CloseInstruction Close(string reason = null)

Parameters

reason string

A string specifying the reason for closure, if the stream is not being closed normally.

Returns

ByteStreamWriter.CloseInstruction

A ByteStreamWriter.CloseInstruction that completes when the close operation is complete or errors.

Write(byte[])

Writes bytes to the stream.

public ByteStreamWriter.WriteInstruction Write(byte[] bytes)

Parameters

bytes byte[]

The bytes to write.

Returns

ByteStreamWriter.WriteInstruction

A ByteStreamWriter.WriteInstruction that completes when the write operation is complete or errors.