[][src]Function xdrfile::c_abi::xdrfile::xdrfile_write_uint

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

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

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

\return Number of unsigned integers written

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!