Open topic with navigation

TIBCO Rendezvous® 8.8.0

# Add Array

Convenience Methods

## Declaration

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

## Purpose

Add a field containing an array value.

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

Parameter | Description
`fieldName` | Create the new field with this name. `NULL` is a legal name. However, if `fieldId` is non-zero, then `fieldName` must be non-`NULL`.
`value` | Add a new field that contains this array. The method signature must correspond to the datatype of this value. The method copies the array into the new message field.
`numElements` | When adding an array type, the program supplies the count of array elements in this parameter.
`fieldId` | Create the new field with this identifier. Zero is a special value that signifies no field identifier. All non-zero field identifiers must be unique within each message. It is illegal to add a field that has both a `NULL` field name, and a non-zero field identifier.

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-2025. Cloud Software Group, Inc. All Rights Reserved.