Bfile ReadFile OS
From WikiPrizm
Jump to navigationJump to search
Contents
Synopsis
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.
Parameters
- 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.
Returns
Unknown. Possibly the number of bytes read, which may indicate an error if it differs from the value input as size.
Comments
Large values for size (one megabyte or more) may cause issues (hang the calculator).