const H5S_extent_t *src_space_extent = (const H5S_extent_t *)mesg_src;  /* Source dataspace extent */
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#define H5O_PACKAGE /*suppress error about including H5Opkg   */
#define H5S_PACKAGE     /*prevent warning from including H5Spkg.h */
#include "H5private.h"      /* Generic Functions            */
#include "H5Dprivate.h"     /* Datasets             */
#include "H5Eprivate.h"     /* Error handling           */
#include "H5FLprivate.h"    /* Free lists                           */
#include "H5Gprivate.h"     /* Groups               */
#include "H5MMprivate.h"    /* Memory management            */
#include "H5Opkg.h"     /* Object headers           */
#include "H5Spkg.h"     /* Dataspaces               */
/* PRIVATE PROTOTYPES */
static void *H5O_sdspace_decode(H5F_t *f, hid_t dxpl_id, H5O_t *open_oh,
    unsigned mesg_flags, unsigned *ioflags, size_t p_size, const uint8_t *p);
static herr_t H5O_sdspace_encode(H5F_t *f, uint8_t *p, const void *_mesg);
static void *H5O_sdspace_copy(const void *_mesg, void *_dest);
static size_t H5O_sdspace_size(const H5F_t *f, const void *_mesg);
static herr_t H5O_sdspace_reset(void *_mesg);
static herr_t H5O_sdspace_free(void *_mesg);
static herr_t H5O_sdspace_pre_copy_file(H5F_t *file_src, const void *mesg_src,
    hbool_t *deleted, const H5O_copy_t *cpy_info, void *_udata);
static herr_t H5O_sdspace_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg,
                FILE * stream, int indent, int fwidth);
/* Set up & include shared message "interface" info */
#define H5O_SHARED_TYPE         H5O_MSG_SDSPACE
#define H5O_SHARED_DECODE       H5O_sdspace_shared_decode
#define H5O_SHARED_DECODE_REAL      H5O_sdspace_decode
#define H5O_SHARED_ENCODE       H5O_sdspace_shared_encode
#define H5O_SHARED_ENCODE_REAL      H5O_sdspace_encode
#define H5O_SHARED_SIZE         H5O_sdspace_shared_size
#define H5O_SHARED_SIZE_REAL        H5O_sdspace_size
#define H5O_SHARED_DELETE       H5O_sdspace_shared_delete
#undef H5O_SHARED_DELETE_REAL
#define H5O_SHARED_LINK         H5O_sdspace_shared_link
#undef H5O_SHARED_LINK_REAL