Class ByteStreamReader.ReadIncrementalInstruction
- Namespace
- LiveKit
YieldInstruction for ReadIncremental().
public sealed class ByteStreamReader.ReadIncrementalInstruction : ReadIncrementalInstructionBase<byte[]>
- Inheritance
-
ByteStreamReader.ReadIncrementalInstruction
- Inherited Members
- Extension Methods
Remarks
Usage: loop yielding the instruction; when it resumes, break if IsEos is true (the stream has ended and every chunk has been drained), otherwise read Bytes and call Reset to advance to the next chunk.
Properties
Bytes
public byte[] Bytes { get; }
Property Value
- byte[]