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
typeFrame type.
channelThe channel number for the frame.
msgnoThe message number for the frame.
moreMore flag status for the frame.
seqnoSequence number for the frame
sizeThe frame payload size.
ansnoThe answer number for the frame
content_typeOptional content type to be used for the frame to be 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_encodingOptional 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.
payloadThe payload is going to have the frame.
frame_sizeAn optional pointer to an integer value which holds current frame size.
bufferThe buffer where the content will be placed.
buffer_sizeThe size of the buffer.
Returns
A newly created frame that should be freed using axl_free.

References VORTEX_CHECK_REF, vortex_frame_seq_build_up_from_params_buffer(), VORTEX_FRAME_TYPE_ANS, VORTEX_FRAME_TYPE_ERR, VORTEX_FRAME_TYPE_MSG, VORTEX_FRAME_TYPE_NUL, VORTEX_FRAME_TYPE_RPY, VORTEX_FRAME_TYPE_SEQ, and VORTEX_FRAME_TYPE_UNKNOWN.

Referenced by vortex_frame_build_up_from_params_s().