public virtual String GetText()
 {
     if (m_tag == 0)
     {
         ulong  kbs  = GetAllocatedSize() >> 10;
         String text = m_symbol.functionName + " (" + kbs + "kb, " + GetNumAllocatedBlocks() +
                       " block(s) , " + GetPercentageOfParentSize().ToString("N") + "%)";
         return(text);
     }
     else
     {
         String stag;
         if (m_tagCRC)
         {
             stag = TagDict.GetTag(m_tag);
         }
         else
         {
             char[] text = new char[4];
             text[3] = (char)(m_tag & 0xFF);
             text[2] = (char)((m_tag >> 8) & 0xFF);
             text[1] = (char)((m_tag >> 16) & 0xFF);
             text[0] = (char)((m_tag >> 24) & 0xFF);
             stag    = new string(text);
         }
         ulong  kbs = GetAllocatedSize() >> 10;
         string ret = stag + " (" + kbs + "kb, " + GetNumAllocatedBlocks() +
                      " block(s) , " + GetPercentageOfParentSize().ToString("N") + "%)";
         return(ret);
     }
 }
Exemple #2
0
        public string GetTagString()
        {
            string tagString;

            if (m_tagCRC)
            {
                tagString = TagDict.GetTag(m_tag);
            }
            else
            {
                char[] text = new char[4];
                text[3]   = (char)(m_tag & 0xFF);
                text[2]   = (char)((m_tag >> 8) & 0xFF);
                text[1]   = (char)((m_tag >> 16) & 0xFF);
                text[0]   = (char)((m_tag >> 24) & 0xFF);
                tagString = new string(text);
            }
            return(tagString);
        }