Class Memory
- Namespace
- NetTopologySuite.Utilities
- Assembly
- NetTopologySuite.dll
Utility functions to report memory usage.
public class Memory
- Inheritance
-
Memory
- Inherited Members
Constructors
Memory()
public Memory()
Fields
GB
Number of bytes in a giga-byte
public const double GB = 1073741824
Field Value
KB
Number of bytes in a kilo-byte
public const double KB = 1024
Field Value
MB
Number of bytes in mega-byte
public const double MB = 1048576
Field Value
Properties
Total
Gets a value indicating the total memory used.
public static long Total { get; }
Property Value
TotalString
Gets a string describing the total memory used
public static string TotalString { get; }
Property Value
Methods
Format(long)
Formats a number of bytes
public static string Format(long mem)
Parameters
mem
longThe number of bytes
Returns
- string
A string describing a number of bytes
Round(double)
Rounds a double to 2 decimal places
public static double Round(double d)
Parameters
d
doubleThe number to round
Returns
- double
The rounded number