Class KvDelta

A single Delta containing the key, the previous value and the current value for a single round.

Hierarchy

Constructors

  • Creates a new KvDelta object.

    Parameters

    • __namedParameters: { key?: string | Uint8Array; value?: string | Uint8Array }
      • Optional key?: string | Uint8Array
      • Optional value?: string | Uint8Array

    Returns KvDelta

Properties

attribute_map: Record<string, string>
key?: Uint8Array

The key, base64 encoded.

value?: Uint8Array

The new value of the KV store entry, base64 encoded.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc