Add ByteString support for RCSResourceAttributes JAVA and JNI. 29/16029/6
authorkoushik.girijala <g.koushik@samsung.com>
Fri, 30 Dec 2016 10:49:36 +0000 (16:19 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 4 Jan 2017 04:26:07 +0000 (04:26 +0000)
commiteab5bd4d1e7dad610abb51bf4d6dee3becb9ab63
tree580e539d34f865303c21857fff719d9692aedfa2
parent1313b8e91e5e2a967a162327c4054756168de8c6
Add ByteString support for RCSResourceAttributes JAVA and JNI.

ByteString(Binary) was added in the Value of OCRepresentation.
But, RE layer does not covered ByteString type.
In this patch, ByteString type is added in RE layer
for synchronization with OC.

patch 2 : Fix memory leak

Change-Id: I5e52fea9b7d4b5b09384fa24446f550d93b89395
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16029
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/RcsByteString.java [new file with mode: 0644]
service/resource-encapsulation/android/service/src/main/java/org/iotivity/service/RcsValue.java
service/resource-encapsulation/android/service/src/main/jni/JniRcsValue.cpp
service/resource-encapsulation/android/service/src/main/jni/util/JNIEnvWrapper.h
service/resource-encapsulation/android/service/src/main/jni/util/JavaClasses.h