Skip to content

fwrite

builtin · libnexusinterp/corefcn/file-io-proprietary.cc

: count = fwrite (fid, data)
: count = fwrite (fid, data, precision)
: count = fwrite (fid, data, precision, skip)
: count = fwrite (fid, data, precision, skip, arch)

Write data as binary values to the file fid.

The elements are converted to precision (default "uint8"), rounding and saturating for integer types. skip bytes are left before each element, and arch gives the byte order. The number of elements written is returned.