All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.ncactivate.license.ByteRef Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * ByteRef.java
 *
 * Created on October 16, 2006, 11:47 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.alachisoft.ncache.ncactivate.license;

/**
 * @author Administrator
 */
public class ByteRef {

    /**
     * Creates a new instance of ByteRef
     */
    public byte[] data;

    public ByteRef() {
    }

    public ByteRef(int nSize) {
        data = new byte[nSize];
    }

    public boolean equals(ByteRef data2) {
        if (data.length != data2.data.length) {
            return false;
        } else {
            for (int i = 0; i < data.length; i++) {
                if (data[i] != data2.data[i]) return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy