Changeset 8374 in josm for trunk/src/org/openstreetmap/josm/data/projection/datum
- Timestamp:
- 2015-05-17T02:56:15+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Util.java
r7294 r8374 38 38 * @return the int 39 39 */ 40 public static finalint getIntLE(byte[] b, int i) {40 public static int getIntLE(byte[] b, int i) { 41 41 return (b[i++] & 0x000000FF) | ((b[i++] << 8) & 0x0000FF00) | ((b[i++] << 16) & 0x00FF0000) | (b[i] << 24); 42 42 } … … 48 48 * @return the int 49 49 */ 50 public static finalint getIntBE(byte[] b, int i) {50 public static int getIntBE(byte[] b, int i) { 51 51 return (b[i++] << 24) | ((b[i++] << 16) & 0x00FF0000) | ((b[i++] << 8) & 0x0000FF00) | (b[i] & 0x000000FF); 52 52 } … … 59 59 * @return the int 60 60 */ 61 public static finalint getInt(byte[] b, boolean bigEndian) {61 public static int getInt(byte[] b, boolean bigEndian) { 62 62 if (bigEndian) 63 63 return getIntBE(b, 0); … … 73 73 * @return the float 74 74 */ 75 public static f inal float getFloat(byte[] b, boolean bigEndian) {75 public static float getFloat(byte[] b, boolean bigEndian) { 76 76 int i = 0; 77 77 if (bigEndian) { … … 90 90 * @return the double 91 91 */ 92 public static finaldouble getDouble(byte[] b, boolean bigEndian) {92 public static double getDouble(byte[] b, boolean bigEndian) { 93 93 int i = 0; 94 94 int j = 0;
Note:
See TracChangeset
for help on using the changeset viewer.