In NetCDF format spec, object name consists of two parts: the number
of characters and the character string itself, i.e.
name = nelems namestring
where nelems is the length of namestring.
This commit reuses nelems if it is previously calculated or already
available in the file header, so to avoid calls to strlen().
In NetCDF format spec, object
name
consists of two parts: the number of characters and the character string itself, i.e.where
nelems
is the length ofnamestring
. This commit reusesnelems
if it is previously calculated or already available in the file header, so to avoid calls tostrlen()
.