Open topic with navigation

TIBCO Rendezvous® 8.8.0

# TibrvMsg::getByteSize()

Method

## Declaration

    TibrvStatus getByteSize(tibrv_u32& byteSize) const;

## Purpose

Return the size of a message (in bytes).

## Remarks

This measurement accounts for the actual space that the message occupies (in wire format), including its header and its fields. It does not include storage that is allocated but unused. It does not include address information, such as the subject or reply subject.

Programs can use this method as part of these tasks:

| • | Measure the size of message before allocating space to store a copy—as with TibrvMsg::getAsBytesCopy().

| • | Assess throughput rates.

| • | Limit output rates (also called throttling).

Parameter | Description
`byteSize` | The program supplies a variable. The method stores the message size (in bytes) in that variable.

## 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.