%N xyzmkbuf %F $MIR/src/subs/xyzio.c
%D Create the i/o buffer (only once)
%P bpw
%: image-i/o
%B
+
      subroutine xyzmkbuf

Usually, xyzio tries to be smart about allocating its own buffer and tries
to minimize its memory use. This works well if all calls to xyzsetup can
be done before any reading or writing is done. However, it may allocate
too much memory if calls to xyzsetup are followed by calls to xyzclose so
that all datasets are closed, and then more opens and setups are done. To
circumvent this, xyzmkbuf creates an i/o buffer of maximum size, and makes
sure it is never deallocated.                                                 
