An iterable implementation of vector that stores its content on the trie. Uses the following map: index -> element

Type Parameters

  • DataType

Hierarchy (view full)

Constructors

Properties

length: number = 0

The initial length of the collection. By default 0.

prefix: string

The byte prefix to use when storing elements inside this collection.

Methods

  • Removes an element from the vector and returns it in serialized form. The removed element is replaced by the last element of the vector. Does not preserve ordering, but is O(1).

    Parameters

    • index: number

      The index at which to remove the element.

    • Optionaloptions: GetOptions<DataType>

      Options for retrieving and storing the data.

    Returns DataType