#include "tensorstore/chunk_layout.h"
enum tensorstore::ChunkLayout::Usage;

Specifies the type of operation to which a chunk grid applies.

For example, with the neuroglancer_precomputed sharded format, writes must be aligned to entire shards for efficiency, while reads of individual chunks within shards are still fairly efficient.

enumerator kWrite = 0;

Chunk is efficient for read and write operations.

enumerator kRead = 1;

Chunk shape is efficient for reading.

enumerator kCodec = 2;

Chunk shape used by the codec, may affect compression ratio (e.g. the compression_segmentation_block_size for neuroglancer_precomputed format).

Data members

constexpr const Usage kUnspecifiedUsage = static_cast<Usage>(3);

Identifies parameters that apply to multiple Usage values.

Friend functions

friend std::ostreamoperator<<(std::ostreamosUsage usage);

Prints a string representation to an std::ostream.

Methods

static Result<Usage> ParseUsage(std::string_view s);

Parses a string representation.