MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / bytesString

Function bytesString

source/MRMesh/MRStringConvert.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::string bytesString( size_t size )
158{
159 if ( size < 1024 )
160 return fmt::format( "{} bytes", size );
161 if ( size < 1024*1024 )
162 return fmt::format( "{:.2f} Kb", size / 1024.f );
163 if ( size < 1024*1024*1024 )
164 return fmt::format( "{:.2f} Mb", size / float(1024*1024) );
165 return fmt::format( "{:.2f} Gb", size / float(1024*1024*1024) );
166}
167
168bool hasProhibitedChars( const std::string& line )
169{

Callers 11

calcFromGridByPartsMethod · 0.85
draw_helpersMethod · 0.85
GetSystemInfoJsonFunction · 0.85
resetSettingsFunction · 0.85
volumeToMeshByPartsFunction · 0.85
getInfoLinesMethod · 0.85
getInfoLinesMethod · 0.85
getInfoLinesMethod · 0.85
mainInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected