PetscBinaryWrite
Writes to a binary file.
Synopsis
int PetscBinaryWrite(int fd,void *p,int n,PetscDataType type,int istemp)
Not
Collective
Input Parameters
fd | - the file
|
p | - the buffer
|
n | - the number of items to write
|
type | - the type of items to read (PETSC_INT or PETSC_SCALAR)
|
Notes
PetscBinaryWrite() uses byte swapping to work on all machines.
Integers are stored on the file as 32 long, regardless of
whetherthey are stored in the machine as 32 or 64, this means the
samebinary file may be read on any machine.
Keywords
binary, output, write
See Also
PetscBinaryRead(), PetscBinaryOpen(), PetscBinaryClose()
Location: src/sys/src/fileiosysio.c
System Index
Table of Contents