MCPcopy Create free account
hub / github.com/catboost/catboost / HumanReadableSize

Function HumanReadableSize

util/stream/format.h:426–428  ·  view source on GitHub ↗

* Output manipulator for writing out human-readable number of elements / memory * amount in `ls -h` style. * * When written into a `IOutputStream`, writes out the provided unsigned integer * variable with small precision and a suffix (like 'K', 'M', 'G' for numbers, or * 'B', 'KiB', 'MiB', 'GiB' for bytes). * * For quantities, base 1000 is used. For bytes, base is 1024. * * Example usage:

Source from the content-addressed store, hash-verified

424 * @param format Format to use.
425 */
426static constexpr ::NFormatPrivate::THumanReadableSize HumanReadableSize(const double size, ESizeFormat format) noexcept {
427 return {size, format};
428}
429
430void Time(IOutputStream& l);
431void TimeHumanReadable(IOutputStream& l);

Callers 4

FmtTimeMethod · 0.85
Out<TResult>Function · 0.85
Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected