#include "tensorstore/index_space/dimension_identifier.h"
absl::Status
tensorstore::NormalizeDimRangeSpec(const DimRangeSpecspec,
                                   
DimensionIndex rank,
                                   
DimensionIndexBufferresult);

Appends to *result the dimensions corresponding to spec.

Parameters:
const DimRangeSpec &spec

The dimension range specification.

DimensionIndex rank

Number of dimensions.

out
DimensionIndexBuffer *result

Non-null pointer to result vector.

Returns:

absl::Status() on success.

Error absl::StatusCode::kInvalidArgument:

if spec is invalid.