Android Utililty Methods ByteBuffer Compare

List of utility methods to do ByteBuffer Compare

Description

The list of methods to do ByteBuffer Compare are organized into topic(s).

Method

booleandiff(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();
...
booleandiff(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;
...