MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ReadFile

Function ReadFile

Source/ThirdParty/tracy/client/TracySysTrace.cpp:749–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749static const char* ReadFile( const char* path )
750{
751 int fd = open( path, O_RDONLY );
752 if( fd < 0 ) return nullptr;
753
754 static char tmp[64];
755 const auto cnt = read( fd, tmp, 63 );
756 close( fd );
757 if( cnt < 0 ) return nullptr;
758 tmp[cnt] = '\0';
759 return tmp;
760}
761
762bool SysTraceStart( int64_t& samplingPeriod )
763{

Callers 4

SysTraceStartFunction · 0.85
ReadFileMethod · 0.85
ReadMethod · 0.85
ReadPipeFunction · 0.85

Calls 2

readFunction · 0.85
closeFunction · 0.85

Tested by

no test coverage detected