[][src]Function molconv::xdr::c_abi::xdrfile::xdrfile_read_int

pub unsafe extern "C" fn xdrfile_read_int(
    ptr: *mut c_int,
    ndata: c_int,
    xfp: *mut XDRFILE
) -> c_int

\brief Read one or more \a integer type variable(s)

\param ptr Pointer to memory where data should be written \param ndata Number of integers to read \param xfp Handle to portable binary file, created with xdrfile_open()

\return Number of integers read

The integer data type is assumed to be less than or equal to 32 bits.

We do not provide any routines for reading/writing 64-bit integers, since

  • Not all XDR implementations support it
  • Not all machines have 64-bit integers

Split your 64-bit data into two 32-bit integers for portability!