Skip to content

Value

One named value read from a key.

Yielded by Key.values and returned by Key.get_value.

Fields

kind @ (ValueKind | Int)

The value's REG_* kind.

An unrecognized kind is reported as its raw kind number, and value is then the raw Bin payload.

name

The value's name as a Str. A key's default value has the name "".

value @ Data

The value's data in its natural Do representation.

kind Type
:SZ:, :EXPAND_SZ: Str
:MULTI_SZ: Array of Str
:DWORD:, :DWORD_BIG_ENDIAN:, :QWORD: Int
:BINARY: Bin
:NONE: nil
unrecognized (integer kind) Bin, the raw payload
Example
for entry = key.values()
  echo "$(entry.name) ($(entry.kind)): $(entry.value)"