private static ByteBuffer writeUid(final long id, final ByteBuffer byteBuffer) {
        UNSIGNED_BYTES.put(byteBuffer, id);
        byteBuffer.flip();
        return byteBuffer;
    }
Write a UID for id into the passed buffer, flips the buffer
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/UID.java