mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(system/file): clarify intention to call System_File::Read/Write instead of File::Read/File::Write (same arguments)
This commit is contained in:
parent
61eede165c
commit
4d8aebaf35
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue