/** * Converts a byte array to a short value * @param bytes byte array * @return the short value */ public static short toShort(byte[] bytes) { return toShort(bytes, 0, SIZEOF_SHORT); }
/** * Converts a byte array to a short value * @param bytes byte array * @param offset offset into array * @return the short value */ public static short toShort(byte[] bytes, int offset) { return toShort(bytes, offset, SIZEOF_SHORT); }
/** * Converts a byte array to a short value * @param bytes byte array * @return the short value */ public static short toShort(byte[] bytes) { return toShort(bytes, 0, SIZEOF_SHORT); }
/** * Converts a byte array to a short value * @param bytes byte array * @param offset offset into array * @return the short value */ public static short toShort(byte[] bytes, int offset) { return toShort(bytes, offset, SIZEOF_SHORT); }
datum = DatumFactory.createInt2(Bytes.toShort(bytes, offset, length)); break; case INT4:
datum = DatumFactory.createInt2(Bytes.toShort(bytes, offset, length)); break; case INT4:
datum = DatumFactory.createInt2(Bytes.toShort(bytes, offset, length)); break; case INT4:
case INT1: case INT2: datum = bytes == null || bytes.length == 0 ? NullDatum.get() : DatumFactory.createInt2(Bytes.toShort(bytes)); break; case INT4:
case INT1: case INT2: datum = bytes == null || bytes.length == 0 ? NullDatum.get() : DatumFactory.createInt2(Bytes.toShort(bytes)); break; case INT4: