Add ByteString support in CBOR wrapper in OIC stack
authorSachin Agrawal <sachin.agrawal@intel.com>
Thu, 8 Oct 2015 16:20:54 +0000 (09:20 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Tue, 27 Oct 2015 20:10:06 +0000 (20:10 +0000)
commit2413b768249ae6c298529d1519ef7dcf8f9a6772
tree69d09812d00fbbfa4ab99b120fd79db29a62b51f
parent3f2a7183304e116c167b389a3e4a8a7a263d92fb
Add ByteString support in CBOR wrapper in OIC stack

Currently byte strings in CBOR wrapper are achieved by using
int arrays. Drawbacks with this approach is in-efficient memory
consumption and 3rd Party tools cannot properly decode the CBOR
generated in this fashion.

Updated code in CBOR wrapper and also added unit tests.

Change-Id: I4ed1adc891be84e800c833df404914a335150ded
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2337
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/include/octypes.h
resource/csdk/stack/include/payload_logging.h
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/csdk/stack/test/SConscript
resource/csdk/stack/test/cbortests.cpp [new file with mode: 0644]