5. For each row, use the saved bulk information to retrieve the column values from the data buffer and to build the rows.
a. Increment the pointer to the data buffer by size of the value (PiValSize *piValSize) to move to the next value in the buffer.
b. Increment the pointer to the length buffer by 1 (p++) to obtain the length of the next value in the buffer.
6. Insert rows to the data source and mark the row insert status using pParamStatusArray[iRow] = DAM_ROW_SUCCESS or pParamStatusArray[iRow] = DAM_ROW_ERROR.
If a row is inserted successfully, its status is marked as DAM_ROW_SUCCESS. Otherwise, the status is marked as DAM_ROW_ERROR.
The following code snippet illustrates how to read values from the bulk buffer.
for(iRow = 0;iRow < *piRowCount;iRow++)
{
int iXoType = ColXoType; /* XoType of the column */
int iValSize = *piValSize; /* Size of each value */