List of utility methods to do ByteBuffer Compare
boolean | diff(ByteBuffer b1, ByteBuffer b2) diff if (b1 == b2 || b1 != null && b1.equals(b2)) return false; if (b1 == null) return b2 != null && b2.remaining() != 0; if (b2 == null) return b1 != null && b1.remaining() != 0; b1 = b1.slice(); b2 = b2.slice(); ... |
boolean | diff(File f1, ByteBuffer b2) diff if (f1 != null && !f1.exists()) f1 = null; if (b2 != null) b2 = b2.slice(); if (f1 == null) return b2 != null && b2.remaining() != 0; if (b2 == null) return f1 != null && f1.length() != 0; ... |