List of utility methods to do ByteBuffer to Short
short | toShort(ByteBuffer buffer) to Short return toByteBuffer(buffer, Short.BYTES).getShort();
|
short | toShort(ByteBuffer bytes) Convert a byte buffer to a short. return bytes.getShort(bytes.position());
|
short | toShort(ByteBuffer value) to Short short result = 0; try { if (value != null) { int originPos = value.position(); result = value.getShort(); value.position(originPos); } catch (Exception ex) { ... |