List of utility methods to do Byte to Short
short | byteToShort(byte b) Convert (signed) byte to (unsigned) short value, i.e., all negative values become positive. return (b < 0) ? (short) (256 + b) : (short) b; |
short | byteToShort(byte b) Converts the byte value to the short value. return (b < 0) ? (short) (256 + b) : (short) b; |