Searched refs:reverseBytes (Results 1 – 11 of 11) sorted by relevance
/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 158 result = Integer.reverseBytes(result); in peekInt() 167 result = Long.reverseBytes(result); in peekLong() 176 result = Short.reverseBytes(result); in peekShort() 194 value = Integer.reverseBytes(value); in pokeInt() 202 value = Long.reverseBytes(value); in pokeLong() 210 value = Short.reverseBytes(value); in pokeShort()
|
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 29 swappedValues[i] = Integer.reverseBytes(values[i]); in testSetIntArray() 70 swappedValues[i] = Long.reverseBytes(values[i]); in testSetLongArray()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ShortTest.java | 678 assertEquals((short) 0xABCD, Short.reverseBytes((short) 0xCDAB)); in test_reverseBytesS() 679 assertEquals((short) 0x1234, Short.reverseBytes((short) 0x3412)); in test_reverseBytesS() 680 assertEquals((short) 0x0011, Short.reverseBytes((short) 0x1100)); in test_reverseBytesS() 681 assertEquals((short) 0x2002, Short.reverseBytes((short) 0x0220)); in test_reverseBytesS()
|
D | LongTest.java | 1040 assertEquals(0xAABBCCDD00112233L, Long.reverseBytes(0x33221100DDCCBBAAL)); in test_reverseBytesJ() 1041 assertEquals(0x1122334455667788L, Long.reverseBytes(0x8877665544332211L)); in test_reverseBytesJ() 1042 assertEquals(0x0011223344556677L, Long.reverseBytes(0x7766554433221100L)); in test_reverseBytesJ() 1043 assertEquals(0x2000000000000002L, Long.reverseBytes(0x0200000000000020L)); in test_reverseBytesJ()
|
D | IntegerTest.java | 1205 assertEquals(0xAABBCCDD, Integer.reverseBytes(0xDDCCBBAA)); in test_reverseBytesI() 1206 assertEquals(0x11223344, Integer.reverseBytes(0x44332211)); in test_reverseBytesI() 1207 assertEquals(0x00112233, Integer.reverseBytes(0x33221100)); in test_reverseBytesI() 1208 assertEquals(0x20000002, Integer.reverseBytes(0x02000020)); in test_reverseBytesI()
|
D | CharacterTest.java | 1470 char origReversed = Character.reverseBytes(origChar);
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Short.java | 483 public static short reverseBytes(short i) { in reverseBytes() method in Short
|
D | Long.java | 1213 public static long reverseBytes(long i) { in reverseBytes() method in Long
|
D | Integer.java | 1286 public static int reverseBytes(int i) { in reverseBytes() method in Integer
|
D | Character.java | 7147 public static char reverseBytes(char ch) { in reverseBytes() method in Character
|
/libcore/ojluni/src/main/java/java/nio/ |
D | Bits.java | 47 return Short.reverseBytes(x); in swap() 51 return Character.reverseBytes(x); in swap() 55 return Integer.reverseBytes(x); in swap() 59 return Long.reverseBytes(x); in swap()
|