File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -899,8 +899,7 @@ amqp_bytes_t AMQP_CALL amqp_cstring_bytes(char const *cstr);
899899 *
900900 * \since v0.16
901901 */
902- AMQP_EXPORT
903- amqp_bytes_t AMQP_CALL amqp_bytes_from_buffer (void const * ptr , size_t length );
902+ #define amqp_bytes_from_buffer (ptr , length ) (amqp_bytes_t){length, (void *)ptr}
904903
905904/**
906905 * Duplicates an amqp_bytes_t buffer.
Original file line number Diff line number Diff line change @@ -138,12 +138,6 @@ amqp_bytes_t amqp_cstring_bytes(char const *cstr) {
138138 result .bytes = (void * )cstr ;
139139 return result ;
140140}
141- amqp_bytes_t amqp_bytes_from_buffer (void const * ptr , size_t length ) {
142- amqp_bytes_t result ;
143- result .len = length ;
144- result .bytes = (void * )ptr ;
145- return result ;
146- }
147141
148142amqp_bytes_t amqp_bytes_malloc_dup (amqp_bytes_t src ) {
149143 amqp_bytes_t result ;
You can’t perform that action at this time.
0 commit comments