public void write(ByteBuffer buffer) {
    buffer.putLong(seed);
    buffer.putInt(fingerprints.length);
    buffer.asShortBuffer().put(fingerprints);
    buffer.position(buffer.position() + (fingerprints.length * Short.BYTES));
  }
public void write(ByteBuffer buffer)