Class ByteStreamReader.ReadIncrementalInstruction
- Namespace
- LiveKit
YieldInstruction for ReadIncremental().
public sealed class ByteStreamReader.ReadIncrementalInstruction : StreamYieldInstruction
- Inheritance
-
ByteStreamReader.ReadIncrementalInstruction
- Inherited Members
- Extension Methods
Remarks
Usage: while IsEos is false (i.e. the stream has not ended), call Reset, yield the instruction, and then access Bytes.
Properties
Bytes
public byte[] Bytes { get; }
Property Value
- byte[]
Error
Error that occurred on the last read, if any.
public StreamError Error { get; }
Property Value
IsError
True if an error occurred on the last read.
public bool IsError { get; }