formatFilesize

  1. string formatFilesize(string formatString, ulong byteSize, SizeDenomination size, bool useAbbreviation)
    string
    formatFilesize
  2. string formatFilesize(string formatString, ulong byteSize, bool useAbbreviation, bool useMetric)
  3. string formatFilesize(ulong byteSize, bool useAbbreviation, bool useMetric)

Parameters

formatString string

The format string for formatting the size number.

byteSize ulong

The total number of bytes.

size SizeDenomination

The denomination to use when representing the size.

useAbbreviation bool

Whether to use the abbreviated unit name, or the full.

Return Value

Type: string

A string representation of the file size.

Meta