Open topic with navigation

TIBCO Rendezvous® 8.7.0

# Update Array

Convenience Methods

## Declaration

    TibrvStatus updateelement_typeArray(
        const char*               fieldName,
        const tibrv_scalar_type    value,
        tibrv_u32                 numElements,
        tibrv_u16                 fieldId=0);

## Purpose

Update a field containing an array value.

## Remarks

Each convenience method in this family locates a field (by name or identifier) and updates its data.

The type of the existing field (within the message) and the type of the updating `value` must match. The number of elements can change.

Pointer data previously extracted from the field remain valid and unchanged until the message is destroyed; that is, even updating the field’s value does not invalidate pointer data. (See Pointer Snapshot.)

Method Name | Element Type | Type Description
`update` `I8Array` | `tibrv_``i8` | 8-bit integer array
`update` `U8Array` | `tibrv_``u8` | 8-bit unsigned integer array
`update` `I16Array` | `tibrv_``i16` | 16-bit integer array
`update` `U16Array` | `tibrv_``u16` | 16-bit unsigned integer array
`update` `I32Array` | `tibrv_``i32` | 32-bit integer array
`update` `U32Array` | `tibrv_``u32` | 32-bit unsigned integer array
`update` `I64Array` | `tibrv_``i64` | 64-bit integer array
`update` `U64Array` | `tibrv_``u64` | 64-bit unsigned integer array
`update` `F32Array` | `tibrv_``f32` | 32-bit floating point array
`update` `F64Array` | `tibrv_``f64` | 64-bit floating point array

Parameter | Description
`fieldName` | Update a field with this name.
`value` | Update the message field to this array value. The method copies the new array into the existing field.
`numElements` | When updating an array type, the program supplies the count of array elements in this parameter.
`fieldId` | Update the field with this identifier. Zero is a special value that signifies no field identifier. It is illegal to add a field that has both a `NULL` field name, and a non-zero field identifier.

## See Also

Field Names and Field Identifiers

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.