Return good default units based on byte size.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static string HumanReadableUnits(
	long bytes,
	IFormatProvider df
)
Visual Basic
Public Shared Function HumanReadableUnits ( _
	bytes As Long, _
	df As IFormatProvider _
) As String
Visual C++
public:
static String^ HumanReadableUnits(
	long long bytes, 
	IFormatProvider^ df
)

Parameters

bytes
Type: System..::..Int64

[Missing <param name="bytes"/> documentation for "M:Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64,System.IFormatProvider)"]

df
Type: System..::..IFormatProvider

[Missing <param name="df"/> documentation for "M:Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64,System.IFormatProvider)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Util.RamUsageEstimator.HumanReadableUnits(System.Int64,System.IFormatProvider)"]

See Also