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.
         */

--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to