Skip to content

Struct KernelRpcValue

Namespace: DotBoxD.Plugins
Assembly: DotBoxD.Plugins.dll

A compact intermediate representation for plugin-defined server extension arguments and results. Scalars carry only their active field, and lists/records carry positional child values matching the verified kernel IR type.

public readonly struct KernelRpcValue

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

public bool BoolValue { get; }

bool

public double DoubleValue { get; }

double

public Guid GuidValue { get; }

Guid

public int Int32Value { get; }

int

public long Int64Value { get; }

long

public int ItemCount { get; }

int

public KernelRpcValue[] Items { get; }

KernelRpcValue[]

public KernelRpcValueKind Kind { get; }

KernelRpcValueKind

public string TextValue { get; }

string

public static KernelRpcValue Bool(bool value)

value bool

KernelRpcValue

public static KernelRpcValue Double(double value)

value double

KernelRpcValue

public KernelRpcValue GetItem(int index)

index int

KernelRpcValue

public static KernelRpcValue Guid(Guid value)

value Guid

KernelRpcValue

public static KernelRpcValue Int32(int value)

value int

KernelRpcValue

public static KernelRpcValue Int64(long value)

value long

KernelRpcValue

public static KernelRpcValue List(KernelRpcValue[] items)

items KernelRpcValue[]

KernelRpcValue

A map value whose entries are a flat key/value sequence: index 0 is the first key, index 1 its value, index 2 the next key, and so on. Its length must therefore be even. Keys and values each carry the kinds matching the verified Map<K,V> kernel IR type.

public static KernelRpcValue Map(KernelRpcValue[] entries)

entries KernelRpcValue[]

KernelRpcValue

public static KernelRpcValue Record(KernelRpcValue[] fields)

fields KernelRpcValue[]

KernelRpcValue

public void RequireKind(KernelRpcValueKind expected)

expected KernelRpcValueKind

public static KernelRpcValue String(string value)

value string

KernelRpcValue

public static KernelRpcValue Unit()

KernelRpcValue