MCPcopy Create free account
hub / github.com/InoriRus/Kyty / GetFile

Method GetFile

source/emulator/src/Kernel/FileSystem.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125File* FileDescriptors::GetFile(int d)
126{
127 Core::LockGuard lock(m_mutex);
128
129 auto index = static_cast<uint32_t>(d - DESCRIPTOR_MIN);
130
131 EXIT_IF(!m_files.IndexValid(index));
132
133 return m_files.At(index);
134}
135
136File* FileDescriptors::GetFile(const String& real_name)
137{

Calls 2

AtMethod · 0.80
IndexValidMethod · 0.45

Tested by

no test coverage detected