Open topic with navigation

TIBCO Rendezvous® 8.7.0

# tibrvMsgData_Malloc()

Function

## Declaration

    void* tibrvMsgData_Malloc(
        tibrv_u32    size);

## Purpose

Allocate process storage for decoders and converters.

## Remarks

Decoders and converters must use this layer 1 function to allocate storage for extracted data. Do not use ordinary `malloc`.

The function returns a pointer to the storage. The storage remains associated with the message, and persists until the message is destroyed. Programmers need not free this storage; instead, the message automatically frees the storage at the appropriate time.

Decoders and converters that allocate storage using this function must pass back the type tibrvMsgData_MallocBlock.

Parameter | Description
`size` | Allocate a storage block of this size (in bytes).

## See Also

tibrvMsgDataType

tibrvMsgData_Converter

tibrvMsgData_Decoder

tibrvMsgData_Encoder

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.