Here you can find the source of setUniqueness(ByteBuffer bb, long uniqueness)
private static void setUniqueness(ByteBuffer bb, long uniqueness)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; public class Main { private static final int uniquenessPos = Long.SIZE / Byte.SIZE; private static void setUniqueness(ByteBuffer bb, long uniqueness) { bb.putLong(uniquenessPos, uniqueness); }/*from ww w . j a va 2 s. co m*/ private static void setUniqueness(ByteBuffer bb, byte[] uniqueness) { for (int i = 0; i < Long.SIZE / Byte.SIZE; ++i) { bb.put(uniquenessPos + i, uniqueness[i]); } } }