Class TextStreamReader
- Namespace
- LiveKit
Reader for an incoming text data stream.
public sealed class TextStreamReader : IDisposable
- Inheritance
-
TextStreamReader
- Implements
- Inherited Members
- Extension Methods
Properties
Info
public TextStreamInfo Info { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ReadAll()
Reads all incoming chunks from the stream, concatenating them into a single value once the stream closes normally.
public TextStreamReader.ReadAllInstruction ReadAll()
Returns
- TextStreamReader.ReadAllInstruction
A TextStreamReader.ReadAllInstruction that completes when the stream is complete or errors. Check ReadAllInstruction.IsError and access Text properties to handle the result.
Remarks
Calling this method consumes the stream reader.
ReadIncremental()
Reads incoming chunks from the stream incrementally.
public TextStreamReader.ReadIncrementalInstruction ReadIncremental()
Returns
- TextStreamReader.ReadIncrementalInstruction
A TextStreamReader.ReadIncrementalInstruction that allows reading the stream incrementally.