getAppropriateSize

Determines the best size denomination to use to describe the given byte size.

getAppropriateSize
(
ulong byteSize
,
bool useMetric = true
)

Parameters

byteSize ulong

The number of bytes.

useMetric bool

Whether to use metric or IEC style units.

Return Value

Type: Size

The best size to describe the given byte size.

Meta