fix(system/file): clarify intention to call System_File::Read/Write instead of File::Read/File::Write (same arguments)

This commit is contained in:
phaneron 2023-08-14 19:27:26 -04:00
parent 61eede165c
commit 4d8aebaf35

View file

@ -382,12 +382,12 @@ bool Read(File::StreamRecord* file, void* data, int64_t offset, size_t* bytes) {
// parms->size also stores the result of how many bytes were actually read // parms->size also stores the result of how many bytes were actually read
bool Read(File::Filesystem* fs, Stacked::FileParms* parms) { bool Read(File::Filesystem* fs, Stacked::FileParms* parms) {
// Position is negative, so actual write position is the current seek offset of the fd. // Position is negative, so actual write position is the current seek offset of the fd.
return Read(parms->stream, parms->param, -1, &parms->size); return System_File::Read(parms->stream, parms->param, -1, &parms->size);
} }
// Specify a file position when reading from a file // Specify a file position when reading from a file
bool ReadP(File::Filesystem* fs, Stacked::FileParms* parms) { bool ReadP(File::Filesystem* fs, Stacked::FileParms* parms) {
return Read(parms->stream, parms->param, parms->position, &parms->size); return System_File::Read(parms->stream, parms->param, parms->position, &parms->size);
} }
// Remove an directory // Remove an directory