Bfile ReadFile OS

From WikiPrizm
Revision as of 11:40, 18 May 2012 by Tari (talk | contribs) (Created page with "{{syscall | name = Bfile_ReadFile_OS | index = 0x1DAC | signature = int Bfile_ReadFile_OS(int handle, void *buf, int size, int pos) | synopsis = Reads bytes from an open file....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


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).