private ByteBuffer addMetaData(final ByteBuffer destination, boolean includeNextBlockMetadata) {
    destination.put(this.fileContext.isUseHBaseChecksum() ? (byte) 1 : (byte) 0);
    destination.putLong(this.offset);
    if (includeNextBlockMetadata) {
      destination.putInt(this.nextBlockOnDiskSize);
    }
    return destination;
  }
Adds metadata at current position (position is moved forward). Does not flip or reset.
@return The passed <code>destination</code> with metadata added.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java