-
#include "tensorstore/chunk_layout.h" -
absl::Status tensorstore::ChunkLayout::GetChunkTemplate(
Usage usage,
MutableBoxView<> box) const; Sets
boxto 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
iwheregrid_origin().hard_constraint[i] == falseor(*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_originand the chunk shape would lead to an invalid box.