Java Utililty Methods Byte to Short

List of utility methods to do Byte to Short

Description

The list of methods to do Byte to Short are organized into topic(s).

Method

shortbyteToShort(byte b)
Convert (signed) byte to (unsigned) short value, i.e., all negative values become positive.
return (b < 0) ? (short) (256 + b) : (short) b;
shortbyteToShort(byte b)
Converts the byte value to the short value.
return (b < 0) ? (short) (256 + b) : (short) b;