/* Add the prev pointer */
destBuffer.position(HEADER_PREV_OFFSET);
LogUtils.writeUnsignedInt(destBuffer, lastOffset);
/* Now calculate the checksum and write it into the buffer. */
checksum.update(destBuffer.array(), CHECKSUM_BYTES,
(entrySize - CHECKSUM_BYTES));
destBuffer.position(0);
LogUtils.putUnsignedInt(destBuffer, checksum.getValue());
/* Leave this buffer ready for copying into another buffer. */