Open topic with navigation

TIBCO Rendezvous® 8.8.0

# TibrvMsg::getAsBytesCopy()

Method

## Declaration

    TibrvStatus getAsBytesCopy(
        void* bytePtr,
        tibrv_u32 byteSize);

## Purpose

Extract a copy of the data from a message as a byte sequence.

## Remarks

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

This method copies the message data into a buffer, which the program owns and may modify.

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.

To allocate appropriate storage, programs determine the length of the byte sequence using TibrvMsg::getByteSize().

The byte sequence can contain interior `NULL` bytes.

Parameter | Description
`bytePtr` | The program supplies a byte buffer. The method copies the byte sequence into that buffer.
`byteSize` | The size of the buffer.

## See Also

TibrvMsg::getAsBytes()

TibrvMsg::getByteSize()

TibrvMsg()

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.