Table of Contents

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
Inherited Members

Properties

BoolValue

public bool BoolValue { get; }

Property Value

bool

DoubleValue

public double DoubleValue { get; }

Property Value

double

GuidValue

public Guid GuidValue { get; }

Property Value

Guid

Int32Value

public int Int32Value { get; }

Property Value

int

Int64Value

public long Int64Value { get; }

Property Value

long

ItemCount

public int ItemCount { get; }

Property Value

int

Items

public KernelRpcValue[] Items { get; }

Property Value

KernelRpcValue[]

Kind

public KernelRpcValueKind Kind { get; }

Property Value

KernelRpcValueKind

TextValue

public string TextValue { get; }

Property Value

string

Methods

Bool(bool)

public static KernelRpcValue Bool(bool value)

Parameters

value bool

Returns

KernelRpcValue

Double(double)

public static KernelRpcValue Double(double value)

Parameters

value double

Returns

KernelRpcValue

GetItem(int)

public KernelRpcValue GetItem(int index)

Parameters

index int

Returns

KernelRpcValue

Guid(Guid)

public static KernelRpcValue Guid(Guid value)

Parameters

value Guid

Returns

KernelRpcValue

Int32(int)

public static KernelRpcValue Int32(int value)

Parameters

value int

Returns

KernelRpcValue

Int64(long)

public static KernelRpcValue Int64(long value)

Parameters

value long

Returns

KernelRpcValue

List(KernelRpcValue[])

public static KernelRpcValue List(KernelRpcValue[] items)

Parameters

items KernelRpcValue[]

Returns

KernelRpcValue

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

entries KernelRpcValue[]

Returns

KernelRpcValue

Record(KernelRpcValue[])

public static KernelRpcValue Record(KernelRpcValue[] fields)

Parameters

fields KernelRpcValue[]

Returns

KernelRpcValue

RequireKind(KernelRpcValueKind)

public void RequireKind(KernelRpcValueKind expected)

Parameters

expected KernelRpcValueKind

String(string)

public static KernelRpcValue String(string value)

Parameters

value string

Returns

KernelRpcValue

Unit()

public static KernelRpcValue Unit()

Returns

KernelRpcValue