MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ReadFile

Function ReadFile

Dependencies/tracy/client/TracySysTrace.cpp:743–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

SysTraceStartFunction · 0.85
win32_read_file_funcFunction · 0.85
ReadFileMethod · 0.85
ReadFileFromMemoryMethod · 0.85

Calls 1

readFunction · 0.85

Tested by

no test coverage detected