The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Size printing and parsing functions. More...
Go to the source code of this file.
Data Structures | |
struct | fr_size_unit_t |
Functions | |
fr_slen_t | fr_size_from_str (size_t *out, fr_sbuff_t *in) |
Parse a size string with optional unit. More... | |
fr_slen_t | fr_size_to_str (fr_sbuff_t *out, size_t in) |
Print a size string with unit. More... | |
Size printing and parsing functions.
Definition in file size.c.
struct fr_size_unit_t |
fr_slen_t fr_size_from_str | ( | size_t * | out, |
fr_sbuff_t * | in | ||
) |
Parse a size string with optional unit.
Default scale with no suffix is bytes.
[out] | out | Parsed and scaled size |
[in] | in | sbuff to parse. |
Definition at line 40 of file size.c.
fr_slen_t fr_size_to_str | ( | fr_sbuff_t * | out, |
size_t | in | ||
) |
Print a size string with unit.
Suffix is the largest unit possible without losing precision.
[out] | out | To write size to. |
[in] | in | size to print. |
Definition at line 155 of file size.c.