Coverage Report

Created: 2026-07-25 06:26

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/hdf5/src/H5FAstat.c
Line
Count
Source
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
 * Copyright by The HDF Group.                                               *
3
 * All rights reserved.                                                      *
4
 *                                                                           *
5
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
6
 * terms governing use, modification, and redistribution, is contained in    *
7
 * the LICENSE file, which can be found at the root of the source code       *
8
 * distribution tree, or in https://www.hdfgroup.org/licenses.               *
9
 * If you do not have access to either file, you may request a copy from     *
10
 * help@hdfgroup.org.                                                        *
11
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12
13
/*-------------------------------------------------------------------------
14
 *
15
 * Created:         H5FAstat.c
16
 *
17
 * Purpose:         Fixed array metadata statistics functions.
18
 *
19
 *-------------------------------------------------------------------------
20
 */
21
22
/**********************/
23
/* Module Declaration */
24
/**********************/
25
26
#include "H5FAmodule.h" /* This source code file is part of the H5FA module */
27
28
/***********************/
29
/* Other Packages Used */
30
/***********************/
31
32
/***********/
33
/* Headers */
34
/***********/
35
#include "H5private.h"   /* Generic Functions                    */
36
#include "H5Eprivate.h"  /* Error handling                       */
37
#include "H5FApkg.h"     /* Fixed Arrays                         */
38
#include "H5MMprivate.h" /* Memory management     */
39
40
/****************/
41
/* Local Macros */
42
/****************/
43
44
/******************/
45
/* Local Typedefs */
46
/******************/
47
48
/********************/
49
/* Package Typedefs */
50
/********************/
51
52
/********************/
53
/* Local Prototypes */
54
/********************/
55
56
/*********************/
57
/* Package Variables */
58
/*********************/
59
60
/*****************************/
61
/* Library Private Variables */
62
/*****************************/
63
64
/*******************/
65
/* Local Variables */
66
/*******************/
67
68
/*-------------------------------------------------------------------------
69
 * Function:    H5FA_get_stats
70
 *
71
 * Purpose:     Query the metadata stats of an array
72
 *
73
 * Return:      SUCCEED/FAIL
74
 *
75
 *-------------------------------------------------------------------------
76
 */
77
herr_t
78
H5FA_get_stats(const H5FA_t *fa, H5FA_stat_t *stats)
79
0
{
80
0
    FUNC_ENTER_NOAPI_NOERR
81
82
#ifdef H5FA_DEBUG
83
    fprintf(stderr, "%s: Called\n", __func__);
84
#endif /* H5FA_DEBUG */
85
86
    /* Check arguments */
87
0
    assert(fa);
88
0
    assert(stats);
89
90
    /* Copy fixed array statistics */
91
0
    H5MM_memcpy(stats, &fa->hdr->stats, sizeof(fa->hdr->stats));
92
93
0
    FUNC_LEAVE_NOAPI(SUCCEED)
94
0
} /* end H5FA_get_stats() */