public int getUncompressedSizeWithHeader() {
      expectState(State.BLOCK_READY);
      return baosInMemory.size();
    }
The uncompressed size of the block data, including header size.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java