MCPcopy
hub / github.com/google/guava / arraysEqual

Method arraysEqual

guava/src/com/google/common/io/ByteStreams.java:973–980  ·  view source on GitHub ↗
(byte[] array1, byte[] array2, int count)

Source from the content-addressed store, hash-verified

971 // Arrays.equals(array1, 0, count, array2, 0, count) would. It assumes that both arrays have a
972 // length of at least count.
973 private static boolean arraysEqual(byte[] array1, byte[] array2, int count) {
974 for (int i = 0; i < count; i++) {
975 if (array1[i] != array2[i]) {
976 return false;
977 }
978 }
979 return true;
980 }
981}

Callers 1

contentsEqualMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected