STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Miscellaneous Functions

Parsing Filesizes with K, M, G suffixes

Since with STXXL one often has to parse large file or disk sizes, there is a function called parse_SI_IEC_size(), which accepts strings like "1 GiB" or "20 TB" as input.

See the Disk Configuration Files documentation page on the format of accepted file size strings.