Bfile ReadFile OS
Header: Not documented
Syscall index: 0x1DAC
Function signature: int Bfile_ReadFile_OS(int handle, void *buf, int size, int pos)
Reads bytes from an open file.
- handle: File handle as returned by Bfile_OpenFile_OS.
- buf: Location to store data read from file.
- size: Number of bytes to read.
- pos: Unknown. Pass as zero.
Unknown. Possibly the number of bytes read, which may indicate an error if it differs from the value input as size.
Large values for size (one megabyte or more) may cause issues (hang the calculator).