On Thu, 14 Nov 2013 09:57:40 -0500, Timothy Bish
<tabish...@gmail.com> wrote:

>On 11/14/2013 09:16 AM, Mark wrote:
>> Does the method cms::BytesMessage::getBodyBytes() return a buffer that
>> requires free-ing by the caller?
>>
>>
>>
> From the API Docs
>
>         /**
>          * Gets the bytes that are contained in this message and 
>returns them in a newly
>          * allocated array that becomes the property of the caller. 
>This is a copy of the
>          * data contained in this message, changing the value contained 
>in this array has
>          * no effect on the data contained in this message.
>          *
>          * @return pointer to a byte buffer that the call owns upon 
>completion of this
>          *         method.
>          *
>          * @throws CMSException - If an internal error occurs.
>          * @throws MessageNotReadableException - If the message is in 
>Write Only Mode.
>          */

I have seen different versions of the docs which say different things.
Hence the question.  Am I correct in assuming that the answer to my
question is "yes" then?



Reply via email to