I am getting the output
[B@3a2fc571
byte[] rate = new byte[8];
ByteBuffer.wrap(rate).putDouble(Flow_Rate);
I used the function to write this data
of_vendor.setData(rate);
But the capacity is same and it is not writing that byte after using the function when the function accept array of byte[]
.
after converting it to ByteBuffer
the output is same and the output is
java.nio.HeapByteBuffer[pos=0 lim=0 cap=8]