42 private volatile long nativeInstance;
43 long getNativeInstance() {
return nativeInstance; }
65 private final String type;
89 public native
boolean setValue(
final byte[] source,
final int source_pos,
final int source_len,
final int dest_pos);
106 private native
long ctorImpl(
final String type,
107 final byte[] value,
final int capacity,
boolean variable_length);
112 synchronized( this ) {
113 handle = nativeInstance;
120 private static native
void dtorImpl(
final long nativeInstance);
136 final byte[] p = { (byte)0, (
byte)0 };
150 public boolean equals(
final Object other) {
151 if(
this == other ) {
Selected standard GATT descriptor numbers in UUID16 format as defined.
static final String CCC_DESC
static final String USER_DESC
static final String EXT_PROP
Representing a Gatt Characteristic Descriptor object from the GATT server perspective.
native boolean setValue(final byte[] source, final int source_pos, final int source_len, final int dest_pos)
Set this characteristic descriptor's native value.
static DBGattDesc createClientCharConfig()
Return a newly constructed Client Characteristic Configuration with a zero uint16_t value of fixed le...
boolean isClientCharConfig()
native DBGattValue getValue()
Return a copy of this characteristic descriptor's native DBGattValue value.
native short getHandle()
Characteristic Descriptor Handle.
String getType()
Type of descriptor UUID (lower-case)
boolean isUserDescription()
DBGattDesc(final String type_, final DBGattValue value_)
The value's DBGattValue#hasVariableLength() is forced to false if isExtendedProperties() or isClientC...
boolean equals(final Object other)
boolean isExtendedProperties()
Value is uint16_t bitfield.
native void bzero()
Fill value with zero bytes.
A copy of the native GATT value of DBGattChar or DBGattDesc.
int capacity()
Return the set capacity for this value.
void setVariableLength(final boolean v)
byte[] data()
Returns the actual data of this value.
boolean hasVariableLength()
Returns true if this value has variable length.