This class implements a Zarr data type as an extension point. This class also manages the "fill_value" attribute associated with the data type.
zarr::zarr_extension -> zarr_data_type
data_typeThe data type for the Zarr array, a single character string. Setting the data type will also set the fill value to its default value.
Rtype(read-only) The R data type corresponding to the Zarr data type.
signed(read-only) Flag that indicates if the Zarr data type is signed or not.
size(read-only) The size of the data type, in bytes.
fill_valueThe fill value for the Zarr array, a single value that
agrees with the range of the data_type.
new()Create a new data type object.
zarr_data_type$new(data_type, fill_value = NULL)data_typeThe name of the data type, a single character string.
fill_valueOptionally, the fill value for the data type.
An instance of this class.
metadata_fragment()Return the metadata fragment for this data type and its fill value.
zarr_data_type$metadata_fragment()A list with the metadata fragment.