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 KernelRpcValueInherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Section titled “Properties”BoolValue
Section titled “ BoolValue”public bool BoolValue { get; }Property Value
Section titled “Property Value”DoubleValue
Section titled “ DoubleValue”public double DoubleValue { get; }Property Value
Section titled “Property Value”GuidValue
Section titled “ GuidValue”public Guid GuidValue { get; }Property Value
Section titled “Property Value”Int32Value
Section titled “ Int32Value”public int Int32Value { get; }Property Value
Section titled “Property Value”Int64Value
Section titled “ Int64Value”public long Int64Value { get; }Property Value
Section titled “Property Value”ItemCount
Section titled “ ItemCount”public int ItemCount { get; }Property Value
Section titled “Property Value”public KernelRpcValue[] Items { get; }Property Value
Section titled “Property Value”public KernelRpcValueKind Kind { get; }Property Value
Section titled “Property Value”TextValue
Section titled “ TextValue”public string TextValue { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Bool(bool)
Section titled “ Bool(bool)”public static KernelRpcValue Bool(bool value)Parameters
Section titled “Parameters”value bool
Returns
Section titled “Returns”Double(double)
Section titled “ Double(double)”public static KernelRpcValue Double(double value)Parameters
Section titled “Parameters”value double
Returns
Section titled “Returns”GetItem(int)
Section titled “ GetItem(int)”public KernelRpcValue GetItem(int index)Parameters
Section titled “Parameters”index int
Returns
Section titled “Returns”Guid(Guid)
Section titled “ Guid(Guid)”public static KernelRpcValue Guid(Guid value)Parameters
Section titled “Parameters”value Guid
Returns
Section titled “Returns”Int32(int)
Section titled “ Int32(int)”public static KernelRpcValue Int32(int value)Parameters
Section titled “Parameters”value int
Returns
Section titled “Returns”Int64(long)
Section titled “ Int64(long)”public static KernelRpcValue Int64(long value)Parameters
Section titled “Parameters”value long
Returns
Section titled “Returns”List(KernelRpcValue[])
Section titled “ List(KernelRpcValue[])”public static KernelRpcValue List(KernelRpcValue[] items)Parameters
Section titled “Parameters”items KernelRpcValue[]
Returns
Section titled “Returns”Map(KernelRpcValue[])
Section titled “ Map(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)Parameters
Section titled “Parameters”entries KernelRpcValue[]
Returns
Section titled “Returns”Record(KernelRpcValue[])
Section titled “ Record(KernelRpcValue[])”public static KernelRpcValue Record(KernelRpcValue[] fields)Parameters
Section titled “Parameters”fields KernelRpcValue[]
Returns
Section titled “Returns”RequireKind(KernelRpcValueKind)
Section titled “ RequireKind(KernelRpcValueKind)”public void RequireKind(KernelRpcValueKind expected)Parameters
Section titled “Parameters”expected KernelRpcValueKind
String(string)
Section titled “ String(string)”public static KernelRpcValue String(string value)Parameters
Section titled “Parameters”value string
Returns
Section titled “Returns”Unit()
Section titled “ Unit()”public static KernelRpcValue Unit()