Source
ret = H5Pset_shared_mesg_index(fcpl_id, 0, H5O_MESG_DTYPE_FLAG | H5O_MESG_SDSPACE_FLAG, 40);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* 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://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* This program illustrates the usage of HDF5's implicit message sharing
* feature, which can be used to save space when the same messages are
* used many times in a file.
*
* This example creates a standard file using file creation property lists
* to control which messages are shared. Messages that can be shared are
* datatypes, dataspaces, attributes, fill values, and filter pipelines.
*
*/
const char* DSETNAME[] = {
"dataset0", "dataset1",
"dataset2", "dataset3",
"dataset4", "dataset5",
"dataset6", "dataset7",
"dataset8", "dataset9",
"dataset10", "dataset11",
"dataset12", "dataset13",
"dataset14", "dataset15",
"dataset16", "dataset17",
"dataset18", "dataset19",
"dataset20", "dataset21",
"dataset22", "dataset23",
"dataset24", "dataset25",
"dataset26", "dataset27",
"dataset28", "dataset29",
"dataset30", "dataset31",
"dataset32", "dataset33",
"dataset34", "dataset35",
"dataset36", "dataset37",