public static void writeUnsignedShortLittleEndian(byte[] buffer, int offset, int value) {
		buffer[offset++] = (byte)(value & 0xFF);
		buffer[offset] = (byte)((value >> 8) & 0xFF);
	}
public static void writeUnsignedShortLittleEndian ( byte [ ] buffer , int offset , int value ) { buffer [ offset ++ ] = ( byte ) ( value & 0xFF ) ; buffer [ offset ] = ( byte ) ( ( value > > 8 ) & 0xFF ) ; }
little-endian or intel format.