MCPcopy Create free account
hub / github.com/Atmosphere-NX/Atmosphere / GetFileIndex

Function GetFileIndex

fusee/program/source/fs/fusee_fs_api.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 ALWAYS_INLINE size_t GetFileIndex(FIL *fp) {
107 const size_t file_index = (fp - g_files);
108 AMS_ASSERT(file_index < MaxFiles);
109 return file_index;
110 }
111
112 ALWAYS_INLINE size_t GetDirectoryIndex(DIR *dp) {
113 const size_t dir_index = (dp - g_dirs);

Callers 2

GetFileOpenModeFunction · 0.70
CloseFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected