optimization to use the existing buffer in blockwise-transfer.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 14 Sep 2015 09:32:49 +0000 (18:32 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Fri, 18 Sep 2015 15:58:23 +0000 (15:58 +0000)
commitea8f6425904a1ac7fdbe0e7fa38797d335d59eb6
tree264e603dcb76e0ef5050cc685046ad0789cc173f
parente9475fad36c38386e43289c727ee04921b42aa4c
optimization to use the existing buffer in blockwise-transfer.

if we have to update payload data, we always allocate new memory.
so we modified the code to use the existing memory if one exists.
This patch addresses the first part of IOT-690.

Change-Id: I04ca551273caf02f783c62a76f11f7e07409d8dd
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2503
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/connectivity/src/cablockwisetransfer.c