interface PtrArrayType {
    destroy: () => Promise<void>;
    getAt: (index: number) => Promise<null | LPVOIDType>;
    getSize: () => Promise<number>;
    options?: Options;
}

Implemented by

Properties

destroy: () => Promise<void>

Destroys the PtrArray.

Type declaration

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

      A promise that resolves when the PtrArray is destroyed.

getAt: (index: number) => Promise<null | LPVOIDType>

Retrieves an element at a specific index in the PtrArray.

Type declaration

    • (index: number): Promise<null | LPVOIDType>
    • Parameters

      • index: number

        The index of the element to retrieve.

      Returns Promise<null | LPVOIDType>

      A promise that resolves to an LPVOID. The actual type of the element may vary and should be constructed accordingly, e.g., Bookmark.

getSize: () => Promise<number>

Retrieves the PtrArray's length.

Type declaration

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

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

options?: Options