Bfile ReadFile OS
|This page's documentation is not complete and is based off of preliminary testing. There may be errors in the documentation or the naming conventions may not be completely agreed upon.|
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: File offset to read at, or -1 to read from the current file pointer (like stdio).
Number of bytes read, or a negative error code on failure.
Large values for size (one megabyte or more) may cause issues (hang the calculator).