Source
112
112
113
113
/*********************/
114
114
/* Package Variables */
115
115
/*********************/
116
116
117
117
/* Contiguous storage layout I/O ops */
118
118
const H5D_layout_ops_t H5D_LOPS_CONTIG[1] = {{
119
119
H5D__contig_construct,
120
120
NULL,
121
121
H5D__contig_is_space_alloc,
122
+
H5D__contig_is_data_cached,
122
123
H5D__contig_io_init,
123
124
H5D__contig_read,
124
125
H5D__contig_write,
125
126
#ifdef H5_HAVE_PARALLEL
126
127
H5D__contig_collective_read,
127
128
H5D__contig_collective_write,
128
129
#endif /* H5_HAVE_PARALLEL */
129
130
H5D__contig_readvv,
130
131
H5D__contig_writevv,
131
132
H5D__contig_flush,
476
477
HDassert(storage);
477
478
478
479
/* Set return value */
479
480
ret_value = (hbool_t)H5F_addr_defined(storage->u.contig.addr);
480
481
481
482
FUNC_LEAVE_NOAPI(ret_value)
482
483
} /* end H5D__contig_is_space_alloc() */
483
484
484
485
•
485
486
/*-------------------------------------------------------------------------
487
+
* Function: H5D__contig_is_data_cached
488
+
*
489
+
* Purpose: Query if raw data is cached for dataset
490
+
*
491
+
* Return: Non-negative on success/Negative on failure
492
+
*
493
+
* Programmer: Neil Fortner
494
+
* Wednessday, March 6, 2016
495
+
*
496
+
*-------------------------------------------------------------------------
497
+
*/
498
+
hbool_t
499
+
H5D__contig_is_data_cached(const H5D_shared_t *shared_dset)
500
+
{
501
+
FUNC_ENTER_PACKAGE_NOERR
502
+
503
+
/* Sanity checks */
504
+
HDassert(shared_dset);
505
+
506
+
FUNC_LEAVE_NOAPI(shared_dset->cache.contig.sieve_size > 0)
507
+
} /* end H5D__contig_is_data_cached() */
508
+
509
+
•
510
+
/*-------------------------------------------------------------------------
486
511
* Function: H5D__contig_io_init
487
512
*
488
513
* Purpose: Performs initialization before any sort of I/O on the raw data
489
514
*
490
515
* Return: Non-negative on success/Negative on failure
491
516
*
492
517
* Programmer: Quincey Koziol
493
518
* Thursday, March 20, 2008
494
519
*
495
520
*-------------------------------------------------------------------------