Class StreamChunk
public sealed class StreamChunk
- Inheritance
-
objectStreamChunk
Constructors
StreamChunk(nint)
public StreamChunk(nint native)
Parameters
nativenint
Methods
GetError()
Gets the error message associated with this chunk, if any.
public string? GetError()
Returns
- string
Remarks
Returns null if there is no error.
GetText()
Gets the text content of the chunk.
public string? GetText()
Returns
- string
Returns null if there is no text content in this chunk (e.g. if it is an error or metadata-only chunk).
IsFinal()
Returns true if this is the final chunk of the stream.
public bool IsFinal()
Returns
- bool
Operators
implicit operator nint(StreamChunk?)
public static implicit operator nint(StreamChunk? handle)
Parameters
handleStreamChunk
Returns
- nint