Creates an extension node schema. The extension node is a tuple with a sentinel header and a data node. The sentinel header is a 3-byte Uint8Array, which makes this "vec" node to be treated as an extension "ext" node.

The 3-byte header consists of the extension ID, the SID of the tuple ID, and the time of the tuple ID:

  • 1 byte for the extension id
  • 1 byte for the sid of the tuple id, modulo 256
  • 1 byte for the time of the tuple id, modulo 256

Type Parameters

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

data: T

Schema of the data node of the extension.

id: ID

A unique extension ID.

type: "ext" = 'ext'