default int getSerializedSize(boolean withTags) {
    return KeyValueUtil.length(getRowLength(), getFamilyLength(), getQualifierLength(),
      getValueLength(), getTagsLength(), withTags);
  }
KeyValue format
<p/>
<code>&lt;4 bytes keylength&gt; &lt;4 bytes valuelength&gt; &lt;2 bytes rowlength&gt;
&lt;row&gt; &lt;1 byte columnfamilylength&gt; &lt;columnfamily&gt; &lt;columnqualifier&gt;
&lt;8 bytes timestamp&gt; &lt;1 byte keytype&gt; &lt;value&gt; &lt;2 bytes tagslength&gt;
&lt;tags&gt;</code>
@param withTags Whether to write tags.
@return Bytes count required to serialize this Cell in a {@link KeyValue} format.
hbase-common/src/main/java/org/apache/hadoop/hbase/ExtendedCell.java