HDassert(HDmemcmp(dt->shared->u.enumer.value + (i * size), dt->shared->u.enumer.value + ((i + 1) * size), size) < 0);
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
 * Module Info: This module contains commond functionality for fields in
 *      enumerated & compound datatypes in the H5T interface.
 */
#include "H5Tmodule.h"          /* This source code file is part of the H5T module */
#include "H5private.h"      /*generic functions           */
#include "H5Eprivate.h"     /*error handling              */
#include "H5Iprivate.h"     /*ID functions                */
#include "H5MMprivate.h"    /*memory management           */
#include "H5Tpkg.h"     /*data-type functions             */
/*-------------------------------------------------------------------------
 * Function:    H5Tget_nmembers
 *
 * Purpose: Determines how many members TYPE_ID has.  The type must be
 *      either a compound datatype or an enumeration datatype.
 *
 * Return:  Success:    Number of members defined in the datatype.
 *
 *      Failure:    Negative
 *
 * Errors:
 *
 * Programmer:  Robb Matzke
 *      Monday, December  8, 1997
 *
 * Modifications:
 *  Robb Matzke, 22 Dec 1998
 *  Also works with enumeration datatypes.
 *-------------------------------------------------------------------------
 */
int
H5Tget_nmembers(hid_t type_id)
{