Synopsis

PDX_MSGT dof_ReadWrite(int io_type, DOF_FILE *file, long nbytes, DOF_OFF_T loc, void *buf)

Purpose

Read/write a buffered file.

Description

The specified amount of data will be read/written to/from file.

Input

io_type

DOF_READ

Read data

DOF_WRITE

Write data

file

File to read/write

nbytes

Number of bytes to read/write

loc

Location within file read/write

buf

Data buffer (if writing)

Output

buf

Data buffer (if reading)

Return

DOF error code