Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5P.get_fill_time

Return time when fill values are written to dataset

Syntax

fill_time = H5P.get_fill_time(plist_id)

Description

fill_time = H5P.get_fill_time(plist_id) returns the time when fill values are written to the dataset specified by the dataset creation property list plist_id. The fill_time output is one of the following values: H5D_FILL_TIME_IFSET, H5D_FILL_TIME_ALLOC, or H5D_FILL_TIME_NEVER.

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/integer');
dcpl = H5D.get_create_plist(dset_id);
fill_time = H5P.get_fill_time(dcpl);
switch(fill_time)
    case H5ML.get_constant_value('H5D_FILL_TIME_IFSET')
        fprintf('upon allocation if and only if fill value set by user\n');
    case H5ML.get_constant_value('H5D_FILL_TIME_ALLOC')
        fprintf('written when storage space is allocated\n');
    case H5ML.get_constant_value('H5D_FILL_TIME_NEVER')
        fprintf('fill values are never written\n');
end
Was this topic helpful?