Open topic with navigation

TIBCO Rendezvous® 8.8.0

# tibrvMsg_GetAsBytes()

Function

## Declaration

    tibrv_status tibrvMsg_GetAsBytes(
        tibrvMsg          message,
        const void**      bytePtr);

## Purpose

Extract the data from a message as a byte sequence.

## Remarks

Return the data as a byte sequence, suitable for archiving in a file.

The storage for the byte sequence is associated with the message, and persists until the message is destroyed. Programs must not modify the resulting byte sequence, which remains part of the message object. To make a copy that your program can modify, use tibrvMsg_GetAsBytesCopy().

The byte data includes the message header and all message fields in Rendezvous wire format. It does not include address information, such as the subject and reply subject, nor certified delivery information.

The byte sequence can contain interior `NULL` bytes.

Parameter | Description
`message` | Extract the data bytes from this message.
`bytePtr` | The program supplies a location. The function stores a pointer to the byte sequence in that location.

## See Also

tibrvMsg_GetAsBytesCopy()

tibrvMsg_GetByteSize()

tibrvMsg_CreateFromBytes()

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.