List of utility methods to do ByteBuffer to Double
double | readDouble(ByteBuffer buffer) read Double return Double.longBitsToDouble(readLong(buffer));
|
double | readDouble(ByteBuffer buffer) read Double return buffer.getDouble();
|
double | toDouble(ByteBuffer buffer) to Double return toByteBuffer(buffer, Double.BYTES).getDouble();
|
double | toDouble(ByteBuffer bytes) to Double return bytes.getDouble(bytes.position());
|
double | toDouble(ByteBuffer value) to Double double result = 0d; try { if (value != null) { int originPos = value.position(); result = value.getDouble(); value.position(originPos); } catch (Exception ex) { ... |