[Overview][Constants][Types][Procedures and functions] |
Positional read: read from file descriptor at a certain position.
Source position: line 0
function FpPRead( |
fd: cInt; |
buf: pChar; |
nbytes: TSize; |
offset: TOff |
):TsSize; |
fd: cInt; |
var buf; |
nbytes: TSize; |
offset: TOff |
):TsSize; |
FpPReadreads nbytesbytes from file descriptor fdinto buffer bufstarting at offset offset. Offsetis measured from the start of the file. This function can only be used on files, not on pipes or sockets (i.e. any seekable file descriptor).
The function returns the number of bytes actually read, or -1 on error.
On error, -1 is returned.
|
Vector read: Read into multiple buffers |
|
|
Positional write: write to file descriptor at a certain position. |