-
#include "tensorstore/chunk_layout.h"
-
absl::Status tensorstore::ChunkLayout::GetChunkTemplate(
Usage usage,
MutableBoxView<> box) const; Sets
box
to the precise write/read chunk template.For the purpose of this method, only hard constraints on
grid_origin()
and(*this)[usage].shape()
are considered; soft constraints are ignored.For any dimension
i
wheregrid_origin().hard_constraint[i] == false
or(*this)[usage].shape().hard_constraint[i] == false
,box[i]
is set toIndexInterval::Infinite()
.- Parameters:¶
- Error absl::StatusCode::kInvalidArgument:¶
- Error absl::StatusCode::kInvalidArgument:¶
if hard constraints on
grid_origin
and the chunk shape would lead to an invalid box.