MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / ReadFile

Function ReadFile

file.c:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71int ReadFile(const char *file, void *buf, int size) {
72 SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0);
73 if (fd < 0)
74 return fd;
75
76 int read = sceIoRead(fd, buf, size);
77
78 sceIoClose(fd);
79 return read;
80}
81
82int WriteFile(const char *file, const void *buf, int size) {
83 SceUID fd = sceIoOpen(file, SCE_O_WRONLY | SCE_O_CREAT | SCE_O_TRUNC, 0777);

Callers 11

hexViewerFunction · 0.85
archiveOpenFunction · 0.85
initPropertyDialogFunction · 0.85
SFOReaderFunction · 0.85
textViewerFunction · 0.85
network_update_threadFunction · 0.85
browserMainFunction · 0.85
loadImageFunction · 0.85
coredumpViewerFunction · 0.85
isCustomHomebrewFunction · 0.85
lrcParseLoadWithFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected