Table of Contents

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

double

KB

Number of bytes in a kilo-byte

public const double KB = 1024

Field Value

double

MB

Number of bytes in mega-byte

public const double MB = 1048576

Field Value

double

Properties

Total

Gets a value indicating the total memory used.

public static long Total { get; }

Property Value

long

TotalString

Gets a string describing the total memory used

public static string TotalString { get; }

Property Value

string

Methods

Format(long)

Formats a number of bytes

public static string Format(long mem)

Parameters

mem long

The 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 double

The number to round

Returns

double

The rounded number