#include "tensorstore/read_write_options.h"
enum tensorstore::SourceDataReferenceRestriction;

Specifies restrictions on how references to the source array/source TensorStore may be used by write operations.

enumerator cannot_reference_source_data = 0;

References to the source data must be released as soon as possible, which may result in additional copies.

enumerator can_reference_source_data_indefinitely = 2;

References to the source data may be retained indefinitely, even after the write is committed. The source data must not be modified until all references are released.