Struct KernelRpcValue
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
- Inherited Members
Properties
BoolValue
public bool BoolValue { get; }
Property Value
DoubleValue
public double DoubleValue { get; }
Property Value
GuidValue
public Guid GuidValue { get; }
Property Value
Int32Value
public int Int32Value { get; }
Property Value
Int64Value
public long Int64Value { get; }
Property Value
ItemCount
public int ItemCount { get; }
Property Value
Items
public KernelRpcValue[] Items { get; }
Property Value
Kind
public KernelRpcValueKind Kind { get; }
Property Value
TextValue
public string TextValue { get; }
Property Value
Methods
Bool(bool)
public static KernelRpcValue Bool(bool value)
Parameters
valuebool
Returns
Double(double)
public static KernelRpcValue Double(double value)
Parameters
valuedouble
Returns
GetItem(int)
public KernelRpcValue GetItem(int index)
Parameters
indexint
Returns
Guid(Guid)
public static KernelRpcValue Guid(Guid value)
Parameters
valueGuid
Returns
Int32(int)
public static KernelRpcValue Int32(int value)
Parameters
valueint
Returns
Int64(long)
public static KernelRpcValue Int64(long value)
Parameters
valuelong
Returns
List(KernelRpcValue[])
public static KernelRpcValue List(KernelRpcValue[] items)
Parameters
itemsKernelRpcValue[]
Returns
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
entriesKernelRpcValue[]
Returns
Record(KernelRpcValue[])
public static KernelRpcValue Record(KernelRpcValue[] fields)
Parameters
fieldsKernelRpcValue[]
Returns
RequireKind(KernelRpcValueKind)
public void RequireKind(KernelRpcValueKind expected)
Parameters
expectedKernelRpcValueKind
String(string)
public static KernelRpcValue String(string value)
Parameters
valuestring
Returns
Unit()
public static KernelRpcValue Unit()