| 43 | } |
| 44 | |
| 45 | list_int32_2_t *sendReceived2Int32(const list_int32_2_t *received_list) |
| 46 | { |
| 47 | list_int32_2_t *send_list; |
| 48 | send_list = (list_int32_2_t *)erpc_malloc(sizeof(list_int32_2_t)); |
| 49 | list_int32_1_t *list_int32_1_t_r = received_list->elements; |
| 50 | send_list->elementsCount = received_list->elementsCount; |
| 51 | send_list->elements = (list_int32_1_t *)erpc_malloc(send_list->elementsCount * sizeof(list_int32_1_t)); |
| 52 | list_int32_1_t *list_int32_1_t_s = send_list->elements; |
| 53 | for (uint32_t i = 0; i < send_list->elementsCount; ++i) |
| 54 | { |
| 55 | int32_t *list_s, *list_r; |
| 56 | list_r = list_int32_1_t_r->elements; |
| 57 | list_int32_1_t_s->elementsCount = list_int32_1_t_r->elementsCount; |
| 58 | list_int32_1_t_s->elements = (int32_t *)erpc_malloc(list_int32_1_t_s->elementsCount * sizeof(int32_t)); |
| 59 | list_s = list_int32_1_t_s->elements; |
| 60 | for (uint32_t j = 0; j < list_int32_1_t_s->elementsCount; ++j) |
| 61 | { |
| 62 | *list_s = 2 * (*list_r); |
| 63 | ++list_r; |
| 64 | ++list_s; |
| 65 | } |
| 66 | ++list_int32_1_t_r; |
| 67 | ++list_int32_1_t_s; |
| 68 | } |
| 69 | |
| 70 | return send_list; |
| 71 | } |
| 72 | |
| 73 | // void receivedInt32Length(int32_t *listNumbers, uint32_t listSize1) |
| 74 | // { |
no test coverage detected