StringUtilsToMemorySizeString Method |
.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Format the passed memory size (in bytes) as a String.
Namespace:
Tangosol.Util
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntaxpublic static string ToMemorySizeString(
long memorySize,
bool isExact
)
Parameters
- memorySize
- Type: SystemInt64
The number of bytes of memory.
- isExact
- Type: SystemBoolean
true if the String representation must be exact, or
false if it can be an approximation.
Return Value
Type:
String
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