sizefmt

This small library allows to easily format file sizes in a human-readable format.

Members

Aliases

Size
alias Size = SizeBase!(Config.init)

Size struct with default options.

Enums

PrefixUse
enum PrefixUse

The use of prefix when formatting long size values.

Spacing
enum Spacing

The type of spacing around the symbol of the size unit.

Structs

Config
struct Config

Configuration of size format.

SizeBase
struct SizeBase(Config config)

Wraps a size value of type ulong which is formatted appropriately when output as text.

Templates

config
template config(string configString)

Builds a configuration from a JSON-like string.

Meta

Authors

Nicolas Sicard