Add ByteString support in CBOR wrapper in OIC stack accepted/tizen/ivi/20160218.024825 accepted/tizen/mobile/20160115.111531 accepted/tizen/tv/20160115.111550 accepted/tizen/wearable/20160115.111608 submit/tizen/20160115.042718 submit/tizen_common/20160115.042709 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005
authorSachin Agrawal <sachin.agrawal@intel.com>
Thu, 8 Oct 2015 16:20:54 +0000 (09:20 -0700)
committerYoungjae Shin <yj99.shin@samsung.com>
Fri, 15 Jan 2016 04:26:13 +0000 (13:26 +0900)
commitd38beaea16946810ff07a4bdd3b3bca67127d460
tree8a86562aa2726b7434e3a4ed33bc906f1afad4ed
parentf85d7e7587daa4ddb99f5aa2bdb6bde5a999e5d9
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/payload_logging.h
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]