Implements

Constructors

  • Create a ByteStringArray instance. Instead of creating an instance in new mode, use create to create an instance.

    Parameters

    • Optionaloptions: Options

      The options to create a ByteStringArray instance.

    Returns ByteStringArray

    Create a ByteStringArray instance with the specified options.

     const byteStringArr = await ByteStringArray.create();
    

Properties

options: Options

Methods

  • Add an string value to the array.

    Parameters

    • item: string

      The string value to add.

    Returns Promise<void>

  • Get the string value at the specified index.

    Parameters

    • index: number

      The index of the element to get.

    Returns Promise<string>

    Return the string value at the specified index.

  • Get the number of elements in the array.

    Returns Promise<number>

    Return the number of elements in the array.

  • Remove the element at the specified index.

    Parameters

    • index: number

      The index of the element to remove.

    Returns Promise<void>

  • Create a ByteStringArray instance.

    Parameters

    • Optionaloptions: Options

      Create a ByteStringArray instance with the specified options.

    Returns Promise<ByteStringArrayType>

    Return a ByteStringArray instance.

     const byteStringArr = await ByteStringArray.create();