bstr_sequence_insert_elements(3) — Subroutines
Name
bstr_sequence_insert_elements − Inserts one or more new elements into a sequence at the specified position.
Syntax
bstr_t_status bstr_sequence_insert_elements (
bstr_t_sequence ∗sequence,
bstr_t_sequence_element ∗data,
bstr_t_natural32 count,
bstr_t_natural32 index);
Description
The bstr_sequence_insert_elements procedure inserts count new elements into the sequence identified by sequence. The new elements are inserted starting from position index. The data argument identifies the start address of an array that contains the new elements.
Arguments
sequence
access: read
The address of the sequence in which the new elements are to be inserted.
data
access: read
The start address of an array of bstr_t_sequence_element data structures that contains the values of the elements to be inserted. The data array must contain at least count elements.
count
access: read
The number of new elements to be inserted into the specified sequence.
index
access: read
The position within the sequence where the new elements are to be inserted. The first element will be inserted at position index.
The first position in which you can insert an element is position 1.
Return Values
| BSTR_S_BAD_ATTRIBUTE_NAME | Bad element attribute name |
| BSTR_S_BAD_ELEMENT_NAME | Bad element name |
| BSTR_S_BAD_ELEMENT_TYPE | Bad element type |
| BSTR_S_BAD_ELEMENT_SIZE | Bad element size |
| BSTR_S_BAD_PARAMETER | Bad parameter value |
| BSTR_S_BAD_SEQUENCE | Bad sequence |
| BSTR_S_COM_PC_SIZE_MISMATCH | Number of bytes requested does not match the number of bytes returned |
| BSTR_S_INVALID_INDEX | Invalid element index |
| BSTR_S_NORMAL | Normal successful completion |
| BSTR_S_NOT_INITIALIZED | BASEstar Open not initialized |
| BSTR_S_NO_MEMORY | Insufficient virtual memory |