Operation which inserts elements into an array.

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • id: ITimestampStruct

      ID if the first operation in this compound operation.

    • obj: ITimestampStruct

      ID of the array where to insert elements. In theory arr is not necessary as it is possible to find the arr just using the after property, however to efficiently be able to find arr just by after at runtime all operations would need to be indexed and also they each would need to store a pointer to array type, which would require additional dozens of bytes of RAM for each array insert operation.

    • ref: ITimestampStruct

      ID of the element after which to insert elements.

    • data: ITimestampStruct[]

      The elements to insert.

    Returns InsArrOp

Properties

The elements to insert.

ID if the first operation in this compound operation.

ID of the array where to insert elements. In theory arr is not necessary as it is possible to find the arr just using the after property, however to efficiently be able to find arr just by after at runtime all operations would need to be indexed and also they each would need to store a pointer to array type, which would require additional dozens of bytes of RAM for each array insert operation.

ID of the element after which to insert elements.

Methods

  • Some operations, such as array and string insert/delete operations are compound a single operation instance effectively represents multiple operations (one per character or array element).

    This method returns the effective number of operations.

    Returns number