Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.litesoft.commonfoundation.typeutils;

public class Bytes
{
    public static boolean areArraysEqual( byte[] pThis, byte[] pThat )
    {
        if ( pThis == pThat ) // handles if both are null
        {
            return true;
        }
        if ( (pThis != null) && (pThat != null) && (pThis.length == pThat.length) )
        {
            for ( int i = pThis.length; --i >= 0; )
            {
                if ( pThis[i] != pThat[i] )
                {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
}

Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/commonfoundation/typeutils/Bytes.java

Diff revisions: vs.
Revision Author Commited Message
939 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 21:30:31 +0000

Extracting commonfoundation

812 GeorgeS picture GeorgeS Sat 18 Aug, 2012 17:45:40 +0000