char * vortex_frame_build_up_from_params_s_buffer ( VortexFrameType  type,
int  channel,
int  msgno,
axl_bool  more,
unsigned int  seqno,
int  size,
int  ansno,
const char *  content_type,
const char *  transfer_encoding,
const void *  payload,
int *  frame_size,
char *  buffer,
int  buffer_size 
)

Creates a new frame, using the given data and returning current frame size resulting from the operation, and placing the content into the buffer provided if defined.

This function replaces vortex_frame_build_up_from_params and it is considered to be more accurate and secure.

Parameters:
type Frame type.
channel The channel number for the frame.
msgno The message number for the frame.
more More flag status for the frame.
seqno Sequence number for the frame
size The frame payload size.
ansno The answer number for the frame
content_type Optional content type to be used for the channel being sent. If no value is provided no content type will be placed. If content type provided is also the default value then no content type will be placed.
transfer_encoding Optional content transfer encoding. If no value is provided no content transfer type will be placed. If content transfer type provided is also the default value then no content type will be placed.
payload The payload is going to have the frame.
frame_size An optional pointer to an integer value which holds current frame size.
buffer The buffer where the content will be placed.
buffer_size The size of the buffer.
Returns:
A newly created frame that should be freed using axl_free.