HP-UX C SIP Stack Message Layer Reference Guide (February 2008)

Body Functions 807
Control Functions
RvSipBodyEncode()
RvSipBodyEncode()
DESCRIPTION
Encodes a body object to a textual body. The encoded body is placed on a page
taken from a specified pool. To copy the encoded body from the page to a
consecutive buffer, use RPOOL_CopyToExternal(). If this function returns
RV_OK, the application must free the allocated page by using
RPOOL_FreePage().
SYNTAX
RvStatus RvSipBodyEncode(
IN RvSipBodyHandle hBody,
IN HRPOOL hPool,
OUT HPAGE* hPage,
OUT RvUint32* length);
PARAMETERS
hBody
The handle to the body object.
hPool
The handle to the specified memory pool.
hPage
The memory page allocated to contain the encoded object.
length
The length of the encoded information.
RETURN VALUES
Returns RvStatus.