code: public int getSerializedDataSize()
      {
          // includes signature, option, dataoffset and datalength output
          int result = (4 << 2);
          result += (m_dataOffset_ << 1);
          if (isCharTrie()) {
              result += (m_dataLength_ << 1);
          }
          else if (isIntTrie()) {
              result += (m_dataLength_ << 2);
          }
          return result;
      }
docs: Gets the serialized data file size of the Trie. This is used during
  trie data reading for size checking purposes.
  @return size size of serialized trie data file in terms of the number
  of bytes