Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
StringUtils..::.ToMemorySizeString Method
StringUtils Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Format the passed memory size (in bytes) as a String.

Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public static string ToMemorySizeString(
    	long memorySize,
    	bool isExact
    )

#### Parameters

memorySize
  Type: System..::.Int64
  The number of bytes of memory.

isExact
  Type: System..::.Boolean
  true if the String representation must be exact, or false if it can be an approximation.

#### Return Value

A String representation of the given memory size.

# Remarks

This method will possibly round the memory size for purposes of producing a more-easily read String value unless the isExact parameter is passed as true.

# See Also

StringUtils Class
Tangosol.Util Namespace