26 #include "jau_direct_bt_DBTGattDesc.h"
42 BTGattDesc *descriptor = getJavaUplinkObject<BTGattDesc>(env, obj);
53 BTGattDesc *descriptor = getJavaUplinkObject<BTGattDesc>(env, obj);
64 BTGattDesc *descriptor = getJavaUplinkObject<BTGattDesc>(env, obj);
69 return env->NewByteArray((jsize)0);
72 jbyteArray jres = env->NewByteArray((jsize)value_size);
73 env->SetByteArrayRegion(jres, 0, (jsize)value_size, (
const jbyte *)descriptor->
value.
get_ptr());
85 if(
nullptr == jval ) {
88 const size_t value_size = (size_t)env->GetArrayLength(jval);
89 if( 0 == value_size ) {
92 BTGattDesc *descriptor = getJavaUplinkObject<BTGattDesc>(env, obj);
96 uint8_t * value_ptr = criticalArray.
get(jval, criticalArray.Mode::NO_UPDATE_AND_RELEASE);
97 if( NULL == value_ptr ) {
101 descriptor->
value = value;