Class BluetoothApis.BLUETOOTH_ADDRESS
java.lang.Object
com.sun.jna.Structure
com.sun.jna.Union
com.sun.jna.platform.win32.BluetoothApis.BLUETOOTH_ADDRESS
- Enclosing interface:
BluetoothApis
The
BLUETOOTH_ADDRESS structure provides the address of a Bluetooth device. The address is stored as
either a BTH_ADDR (unsigned 64-bit integer) or a 6-byte array.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionbyte[]The Bluetooth address as a 6-byte array in network byte order.longThe Bluetooth address as a 64-bit unsigned integer (only lower 48 bits used).Fields inherited from class Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the address as a long.byte[]getBytes()Gets the address as a 6-byte array.Methods inherited from class Union
getFieldOrder, getNativeAlignment, getTypedValue, readField, readField, setType, setType, setTypedValue, writeField, writeField, writeFieldMethods inherited from class Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write
-
Field Details
-
ullLong
public long ullLongThe Bluetooth address as a 64-bit unsigned integer (only lower 48 bits used). -
rgBytes
public byte[] rgBytesThe Bluetooth address as a 6-byte array in network byte order.
-
-
Constructor Details
-
BLUETOOTH_ADDRESS
public BLUETOOTH_ADDRESS()
-
-
Method Details
-
getAddress
public long getAddress()Gets the address as a long.- Returns:
- the address
-
getBytes
public byte[] getBytes()Gets the address as a 6-byte array.- Returns:
- the address bytes
-