Searched refs:bytes1 (Results 1 - 5 of 5) sorted by relevance
/openjdk9/jdk/src/java.base/share/classes/sun/security/util/ |
H A D | ByteArrayTagOrder.java | 45 * @param bytes1 first byte array to compare. 47 * @return negative number if {@code bytes1 < bytes2}, 48 * 0 if {@code bytes1 == bytes2}, 49 * positive number if {@code bytes1 > bytes2}. 55 public final int compare(byte[] bytes1, byte[] bytes2) { argument 58 return (bytes1[0] | 0x20) - (bytes2[0] | 0x20);
|
H A D | ByteArrayLexOrder.java | 45 * @param bytes1 first byte array to compare. 47 * @return negative number if {@code bytes1 < bytes2}, 48 * 0 if {@code bytes1 == bytes2}, 49 * positive number if {@code bytes1 > bytes2}. 54 public final int compare( byte[] bytes1, byte[] bytes2) { argument 56 for (int i = 0; i < bytes1.length && i < bytes2.length; i++) { 57 diff = (bytes1[i] & 0xFF) - (bytes2[i] & 0xFF); 64 return bytes1.length - bytes2.length;
|
/openjdk9/jdk/test/sun/nio/cs/ |
H A D | FindASCIICodingBugs.java | 73 byte[] bytes1 = "A".getBytes(csn); 76 check(equals(bytes1, bb)); 77 check(new String(bytes1, csn).equals("A"));
|
H A D | TestIBMBugs.java | 141 byte[] bytes1 = "\\".getBytes("IBM949"); 144 if (bytes1.length != 1 || bytes2.length != 1 || 145 bytes1[0] != (byte)0x82 ||
|
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/ |
H A D | Name.java | 243 protected static boolean equals(byte[] bytes1, int offset1, argument 246 while (i < length && bytes1[offset1 + i] == bytes2[offset2 + i]) {
|
Completed in 107 milliseconds