I am able to read 4byte data using byteBuf.getInt() and same way till 8 bytes I am using getLong.
I am not able to read 16 byte data. when I googled I understand that java BigDecimal will support 16 byte data.
Could any one please help on reading 16 byte data from ByteBuffer?
I am not sure how to proceed further.
byte[] decimalBuffer = new byte[16];
in.read(decimalBuffer);
ByteBuffer decimalByteBuffer = ByteBuffer.wrap(decimalBuf);
//Need statements to read 16 byte data from ByteBuffer