diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/org/direct_bt/DBGattValue.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/org/direct_bt/DBGattValue.java b/java/org/direct_bt/DBGattValue.java index 211afe46..b695c5cd 100644 --- a/java/org/direct_bt/DBGattValue.java +++ b/java/org/direct_bt/DBGattValue.java @@ -71,6 +71,11 @@ public class DBGattValue return new DBGattValue(p, capacity, true /* variable_length */); } + /** Convenience {@link DBGattValue} ctor function. */ + public static DBGattValue make(final byte[] p) { + return new DBGattValue(p, p.length); + } + /** * Constructor * @param value the data, which length defines the maximum writable fixed length if variable length is false. |