Example usage for org.eclipse.jgit.util NB decodeInt32

List of usage examples for org.eclipse.jgit.util NB decodeInt32

Introduction

In this page you can find the example usage for org.eclipse.jgit.util NB decodeInt32.

Prototype

public static int decodeInt32(final byte[] intbuf, final int offset) 

Source Link

Document

Convert sequence of 4 bytes (network byte order) into signed value.

Usage

From source file:com.google.gerrit.gpg.Fingerprint.java

License:Apache License

@Override
public int hashCode() {
    // Same hash code as ObjectId: second int word.
    return NB.decodeInt32(fp, 4);
}