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

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

Introduction

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

Prototype

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

Source Link

Document

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

Usage

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

License:Apache License

public long getId() {
    return NB.decodeInt64(fp, 12);
}

From source file:com.google.gerrit.gpg.server.GpgKeys.java

License:Apache License

private static long keyId(byte[] fp) {
    return NB.decodeInt64(fp, fp.length - 8);
}