Table of Contents

Class ExecOutput

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

A chunk of standard output or error.

public sealed record ExecOutput : ExecEvent, IEquatable<ExecEvent>, IEquatable<ExecOutput>
Inheritance
ExecOutput
Implements
Inherited Members

Constructors

ExecOutput(bool, ReadOnlyMemory<byte>)

A chunk of standard output or error.

public ExecOutput(bool IsStdErr, ReadOnlyMemory<byte> Data)

Parameters

IsStdErr bool

True for standard error, false for standard output.

Data ReadOnlyMemory<byte>

The raw output bytes.

Properties

Data

The raw output bytes.

public ReadOnlyMemory<byte> Data { get; init; }

Property Value

ReadOnlyMemory<byte>

IsStdErr

True for standard error, false for standard output.

public bool IsStdErr { get; init; }

Property Value

bool

Text

Decodes the chunk as UTF-8.

public string Text { get; }

Property Value

string