kgiusti opened a new pull request #879:
URL: https://github.com/apache/qpid-dispatch/pull/879


   This may be the wrong way to solve this - fixing it at the message 
construction phase rather than at message decode.
   
   This patch adds a new body-data message API call:
   void qd_message_body_data_append(qd_message_t *msg, qd_buffer_list_t *data);
   
   A single call to this would replace this logic in the adaptors:
   
   -    //                                                                      
                                                                     
   -    // Compose a DATA performative for this section of the stream           
                                                                     
   -    //                                                                      
                                                                     
   -    qd_composed_field_t *field = qd_compose(QD_PERFORMATIVE_BODY_DATA, 0);  
                                                                     
   -    qd_compose_insert_binary_buffers(field, body);                          
                                                                     
   -                                                                            
                                                                     
   -    //                                                                      
                                                                     
   -    // Extend the streaming message and free the composed field             
                                                                     
   -    //                                                                      
                                                                     
   -    qd_message_extend(msg, field);                                          
                                                                     
   -    qd_compose_free(field);                                                 
                                                                     
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to