Add getter for buffer

This commit is contained in:
Klaus Reimer 2014-02-23 13:58:47 +01:00
parent 5a0979590e
commit 58510ee648

View File

@ -61,6 +61,16 @@ public final class DeviceDescriptor
{
return this.deviceDescriptorPointer;
}
/**
* Returns the Java byte buffer which contains the descriptor structure.
*
* @return The descriptor structur buffer.
*/
public ByteBuffer getBuffer()
{
return this.deviceDescriptorBuffer;
}
/**
* Returns the size of this descriptor (in bytes).