Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Format the passed memory size (in bytes) as a String.

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

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