parseFilesize

Parses a filesize from a string that's formatted like so: "<number> <unit>", where the unit is any one of the defined Size types. Accepts floating-point and integer numbers.

ulong
parseFilesize
(
string s
)

Parameters

s string

The string to parse.

Return Value

Type: ulong

The parsed filesize, in bytes.

Meta