MCPcopy Create free account
hub / github.com/ByConity/ByConity / formatReadableSizeWithBinarySuffix

Function formatReadableSizeWithBinarySuffix

src/Common/formatReadable.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void formatReadableSizeWithBinarySuffix(double value, DB::WriteBuffer & out, int precision)
39{
40 const char * units[] = {" B", " KiB", " MiB", " GiB", " TiB", " PiB", " EiB", " ZiB", " YiB"};
41 formatReadable(value, out, precision, units, sizeof(units) / sizeof(units[0]), 1024);
42}
43
44std::string formatReadableSizeWithBinarySuffix(double value, int precision)
45{

Callers 15

setExtrasFunction · 0.85
mainMethod · 0.85
readMethod · 0.85
balancedReservationMethod · 0.85
mainFunction · 0.85
processFileMethod · 0.85
sendMethod · 0.85
loopFunction · 0.85
formatMethod · 0.85
allocImplMethod · 0.85
dumpDataForTablesFunction · 0.85

Calls 2

formatReadableFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected