Tests whether two byte arrays have the same contents. @param a First non-null byte array to compare. @param b Second non-null byte array to compare. @return true if the two arrays are identical, false otherwise.
(final byte[] a, final byte[] b)
| 1095 | * {@code false} otherwise. |
| 1096 | */ |
| 1097 | public static boolean equals(final byte[] a, final byte[] b) { |
| 1098 | return memcmp(a, b) == 0; |
| 1099 | } |
| 1100 | |
| 1101 | /** |
| 1102 | * {@code memcmp(3)} in Java for possibly {@code null} arrays, hooray. |