interface WideStringArrayType {
    add: (newItem: string) => Promise<void>;
    copy: (
        srcArr: WideStringArrayType,
        start: number,
        count: number,
    ) => Promise<number>;
    getAt: (index: number) => Promise<string>;
    getSize: () => Promise<number>;
    options: Options;
    removeAll: () => Promise<void>;
    removeAt: (index: number) => Promise<void>;
}

Implemented by

Properties

add: (newItem: string) => Promise<void>

Adds an element to the WideStringArray.

Type declaration

    • (newItem: string): Promise<void>
    • Parameters

      • newItem: string

        The element to add.

      Returns Promise<void>

      A promise that resolves when the element is added.

copy: (
    srcArr: WideStringArrayType,
    start: number,
    count: number,
) => Promise<number>

Copies elements from a source WideStringArray.

Type declaration

    • (srcArr: WideStringArrayType, start: number, count: number): Promise<number>
    • Parameters

      • srcArr: WideStringArrayType

        The source array to copy from.

      • start: number

        The starting position in the source array.

      • count: number

        The number of elements to copy.

      Returns Promise<number>

      A promise that resolves to the number of elements copied or -1 if an error occurs.

getAt: (index: number) => Promise<string>

Retrieves an element at a specific index in the WideStringArray.

Type declaration

    • (index: number): Promise<string>
    • Parameters

      • index: number

        The index of the element to retrieve.

      Returns Promise<string>

      A promise that resolves to the string element at the specified index.

getSize: () => Promise<number>

Retrieves the number of elements in the WideStringArray.

Type declaration

    • (): Promise<number>
    • Returns Promise<number>

      A promise that resolves to the number of elements in the array.

options: Options
removeAll: () => Promise<void>

Removes all elements from the WideStringArray.

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

      A promise that resolves when all elements are removed.

removeAt: (index: number) => Promise<void>

Removes an element at a specific index in the WideStringArray.

Type declaration

    • (index: number): Promise<void>
    • Parameters

      • index: number

        The index of the element to remove.

      Returns Promise<void>

      A promise that resolves when the element is removed.