Implements

Constructors

Properties

Methods

Constructors

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

    Parameters

    • Optionaloptions: Options

      Create a PtrArray instance with the specified options.

    Returns PtrArray

    const pdfArr = await PtrArray.create();
    

Properties

options: Options

Methods

  • Destroys the PtrArray.

    Returns Promise<void>

    A promise that resolves when the PtrArray is destroyed.

  • Retrieves an element at a specific index in the PtrArray.

    Parameters

    • index: number

      The index of the element to retrieve.

    Returns Promise<null | LPVOIDType>

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

  • Retrieves the PtrArray's length.

    Returns Promise<number>

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

  • Creates a PtrArray instance.

    Parameters

    • Optionaloptions: Options

      The configuration options required for creation, containing necessary initialization information.

    Returns Promise<PtrArrayType>

    A promise that resolves to a PtrArray instance.