Home
last modified time | relevance | path

Searched refs:reverseBytes (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DMemory.java158 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/
DMemoryTest.java29 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/
DShortTest.java678 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()
DLongTest.java1040 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()
DIntegerTest.java1205 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()
DCharacterTest.java1470 char origReversed = Character.reverseBytes(origChar);
/libcore/ojluni/src/main/java/java/lang/
DShort.java483 public static short reverseBytes(short i) { in reverseBytes() method in Short
DLong.java1213 public static long reverseBytes(long i) { in reverseBytes() method in Long
DInteger.java1286 public static int reverseBytes(int i) { in reverseBytes() method in Integer
DCharacter.java7147 public static char reverseBytes(char ch) { in reverseBytes() method in Character
/libcore/ojluni/src/main/java/java/nio/
DBits.java47 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()