FormatBytes() public static method

public static FormatBytes ( int bytes ) : string
bytes int
return string
コード例 #1
0
 public static void Log()
 {
     System.Text.StringBuilder output = new System.Text.StringBuilder();
     output.Append("============================\n\t\t\t\tSize Profile results:\n============================\n");
     //foreach(KeyValuePair<string, ProfilePoint> pair in profiles)
     foreach (KeyValuePair <string, ProfileSizePoint> pair in profiles)
     {
         output.Append(pair.Key);
         output.Append("	used	");
         output.Append(AstarMath.FormatBytes((int)pair.Value.totalSize));
         output.Append("\n");
     }
     Debug.Log(output.ToString());
 }