if ((ret_value=H5F_contig_writevv(f, layout->chunk_size, chunk_addr, chunk_max_nseq, chunk_curr_seq, chunk_len_arr, chunk_offset_arr, mem_max_nseq, mem_curr_seq, mem_len_arr, mem_offset_arr, dxpl_id, buf))<0)
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have     *
 * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Programmer:  Robb Matzke <matzke@llnl.gov>
 *          Wednesday, October  8, 1997
 *
 * Purpose: Indexed (chunked) I/O functions.  The logical
 *      multi-dimensional data space is regularly partitioned into
 *      same-sized "chunks", the first of which is aligned with the
 *      logical origin.  The chunks are given a multi-dimensional
 *      index which is used as a lookup key in a B-tree that maps
 *      chunk index to disk address.  Each chunk can be compressed
 *      independently and the chunks may move around in the file as
 *      their storage requirements change.
 *
 * Cache:   Disk I/O is performed in units of chunks and H5MF_alloc()
 *      contains code to optionally align chunks on disk block
 *      boundaries for performance.
 *
 *      The chunk cache is an extendible hash indexed by a function
 *      of storage B-tree address and chunk N-dimensional offset
 *      within the dataset.  Collisions are not resolved -- one of
 *      the two chunks competing for the hash slot must be preempted
 *      from the cache.  All entries in the hash also participate in
 *      a doubly-linked list and entries are penalized by moving them
 *      toward the front of the list.  When a new chunk is about to
 *      be added to the cache the heap is pruned by preempting
 *      entries near the front of the list to make room for the new
 *      entry which is added to the end of the list.
 */
#define H5B_PACKAGE     /*suppress error about including H5Bpkg   */
#define H5F_PACKAGE     /*suppress error about including H5Fpkg   */
/* Pablo information */
/* (Put before include files to avoid problems with inline functions) */
#define PABLO_MASK  H5Fistore_mask
#include "H5private.h"      /* Generic Functions            */
#include "H5Bpkg.h"     /* B-link trees             */