Search Results for

    Show / Hide Table of Contents

    Class Memory

    Utility functions to report memory usage.

    Inheritance
    object
    Memory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Utilities
    Assembly: NetTopologySuite.dll
    Syntax
    public class Memory

    Fields

    | Edit this page View Source

    GB

    Number of bytes in a giga-byte

    Declaration
    public const double GB = 1073741824
    Field Value
    Type Description
    double
    | Edit this page View Source

    KB

    Number of bytes in a kilo-byte

    Declaration
    public const double KB = 1024
    Field Value
    Type Description
    double
    | Edit this page View Source

    MB

    Number of bytes in mega-byte

    Declaration
    public const double MB = 1048576
    Field Value
    Type Description
    double

    Properties

    | Edit this page View Source

    Total

    Gets a value indicating the total memory used.

    Declaration
    public static long Total { get; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    TotalString

    Gets a string describing the total memory used

    Declaration
    public static string TotalString { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Format(long)

    Formats a number of bytes

    Declaration
    public static string Format(long mem)
    Parameters
    Type Name Description
    long mem

    The number of bytes

    Returns
    Type Description
    string

    A string describing a number of bytes

    | Edit this page View Source

    Round(double)

    Rounds a double to 2 decimal places

    Declaration
    public static double Round(double d)
    Parameters
    Type Name Description
    double d

    The number to round

    Returns
    Type Description
    double

    The rounded number

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX