| 27 | //////////////////////////////////////////////////////////////////////////////// |
| 28 | |
| 29 | list_int32_1_t *sendReceivedInt32(const list_int32_1_t *received_list) |
| 30 | { |
| 31 | list_int32_1_t *send_list = (list_int32_1_t *)erpc_malloc(sizeof(list_int32_1_t)); |
| 32 | send_list->elementsCount = received_list->elementsCount; |
| 33 | int32_t *list_s = send_list->elements = (int32_t *)erpc_malloc(send_list->elementsCount * sizeof(int32_t)); |
| 34 | int32_t *list_r = received_list->elements; |
| 35 | |
| 36 | for (uint32_t i = 0; i < send_list->elementsCount; ++i) |
| 37 | { |
| 38 | *list_s = 2 * (*list_r); |
| 39 | ++list_s; |
| 40 | ++list_r; |
| 41 | } |
| 42 | return send_list; |
| 43 | } |
| 44 | |
| 45 | list_int32_2_t *sendReceived2Int32(const list_int32_2_t *received_list) |
| 46 | { |
no test coverage detected