diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-05 19:10:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-05 19:10:41 (GMT) |
commit | 1437b0bde7528fd6603769580394f9fcb5a47301 (patch) | |
tree | cb2686042b74094ea80e352c63618c1415f5318b /src/H5Fcompact.c | |
parent | 28404e2813b982ea7374a8cd0513f9cf17a07c35 (diff) | |
download | hdf5-1437b0bde7528fd6603769580394f9fcb5a47301.zip hdf5-1437b0bde7528fd6603769580394f9fcb5a47301.tar.gz hdf5-1437b0bde7528fd6603769580394f9fcb5a47301.tar.bz2 |
[svn-r8616] Purpose:
Rename these files
Description:
Since these files contain functions that are part of the dataset information
now, rename them to H5D<foo>.c
Diffstat (limited to 'src/H5Fcompact.c')
-rw-r--r-- | src/H5Fcompact.c | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/src/H5Fcompact.c b/src/H5Fcompact.c deleted file mode 100644 index 3701221..0000000 --- a/src/H5Fcompact.c +++ /dev/null @@ -1,127 +0,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: Raymond Lu <slu@ncsa.uiuc.edu> - * August 5, 2002 - * - * Purpose: Compact dataset I/O functions. These routines are similar - * H5D_contig_* and H5D_istore_*. - */ - -#define H5D_PACKAGE /*suppress error about including H5Dpkg */ - -/* Pablo information */ -/* (Put before include files to avoid problems with inline functions) */ -#define PABLO_MASK H5Dcompact_mask - -#include "H5private.h" /* Generic Functions */ -#include "H5Dpkg.h" /* Dataset functions */ -#include "H5Eprivate.h" /* Error handling */ -#include "H5Fprivate.h" /* Files */ -#include "H5FDprivate.h" /* File drivers */ -#include "H5FLprivate.h" /* Free Lists */ -#include "H5Oprivate.h" /* Object headers */ -#include "H5Vprivate.h" /* Vector and array functions */ - -/* Interface initialization */ -static int interface_initialize_g = 0; -#define INTERFACE_INIT NULL - - -/*------------------------------------------------------------------------- - * Function: H5D_compact_readvv - * - * Purpose: Reads some data vectors from a dataset into a buffer. - * The data is in compact dataset. The address is relative - * to the beginning address of the dataset. The offsets and - * sequence lengths are in bytes. - * - * Return: Non-negative on success/Negative on failure - * - * Programmer: Quincey Koziol - * May 7, 2003 - * - * Notes: - * Offsets in the sequences must be monotonically increasing - * - * Modifications: - * - *------------------------------------------------------------------------- - */ -ssize_t -H5D_compact_readvv(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const H5D_t *dset, - size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[], - size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[], - void *buf) -{ - ssize_t ret_value; /* Return value */ - - FUNC_ENTER_NOAPI(H5D_compact_readvv, FAIL); - - assert(dset); - - /* Use the vectorized memory copy routine to do actual work */ - if((ret_value=H5V_memcpyvv(buf,mem_max_nseq,mem_curr_seq,mem_size_arr,mem_offset_arr,dset->layout.u.compact.buf,dset_max_nseq,dset_curr_seq,dset_size_arr,dset_offset_arr))<0) - HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "vectorized memcpy failed"); - -done: - FUNC_LEAVE_NOAPI(ret_value); -} /* end H5D_compact_readvv() */ - - -/*------------------------------------------------------------------------- - * Function: H5D_compact_writevv - * - * Purpose: Writes some data vectors from a dataset into a buffer. - * The data is in compact dataset. The address is relative - * to the beginning address for the file. The offsets and - * sequence lengths are in bytes. This function only copies - * data into the buffer in the LAYOUT struct and mark it - * as DIRTY. Later in H5D_close, the data is copied into - * header message in memory. - * - * Return: Non-negative on success/Negative on failure - * - * Programmer: Quincey Koziol - * May 2, 2003 - * - * Notes: - * Offsets in the sequences must be monotonically increasing - * - * Modifications: - * - *------------------------------------------------------------------------- - */ -ssize_t -H5D_compact_writevv(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, H5D_t *dset, - size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[], - size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[], - const void *buf) -{ - ssize_t ret_value; /* Return value */ - - FUNC_ENTER_NOAPI(H5D_compact_writevv, FAIL); - - assert(dset); - - /* Use the vectorized memory copy routine to do actual work */ - if((ret_value=H5V_memcpyvv(dset->layout.u.compact.buf,dset_max_nseq,dset_curr_seq,dset_size_arr,dset_offset_arr,buf,mem_max_nseq,mem_curr_seq,mem_size_arr,mem_offset_arr))<0) - HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "vectorized memcpy failed"); - - dset->layout.u.compact.dirty = TRUE; - -done: - FUNC_LEAVE_NOAPI(ret_value); -} /* end H5D_compact_writevv() */ |