Open topic with navigation

TIBCO Rendezvous® 8.8.0

# tibrvMsg_CreateFromBytes()

Function

## Declaration

    tibrv_status tibrvMsg_CreateFromBytes(
        tibrvMsg*           message,
        const void*         bytes);

## Purpose

Create a new message, and populate it with data.

## Remarks

This function allocates storage for the new message. The program owns the message, and must destroy it to reclaim the storage. That is, each call to this function must be paired with a call to tibrvMsg_Destroy().

This function copies the bytes into the new message.

Programs can add address information to the message using tibrvMsg_SetSendSubject(), and tibrvMsg_ConvertToString().

Parameter | Description
`message` | The program supplies a location for the new message. The function creates a new message and stores a pointer to it in that location.
`bytes` | Fill the new message with this data. This data buffer represents the message in Rendezvous wire format, as produced by tibrvMsg_GetAsBytes() or tibrvMsg_GetAsBytesCopy().

## See Also

tibrvMsg_GetAsBytes()

tibrvMsg_GetAsBytesCopy()

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.