Byte-range request for Store::read_range.
More...
#include <store.hpp>
Byte-range request for Store::read_range.
◆ Kind
Which part of the value to read.
| Enumerator |
|---|
| full | the whole value
|
| slice | length bytes starting at offset
|
| suffix | the final length bytes
|
◆ slice()
| static constexpr ByteRange zarr::ByteRange::slice |
( |
std::uint64_t |
offset, |
|
|
std::uint64_t |
length |
|
) |
| |
|
inlinestaticconstexpr |
length bytes starting at byte offset. A range that lies outside the value is an error, not a truncation.
◆ suffix()
| static constexpr ByteRange zarr::ByteRange::suffix |
( |
std::uint64_t |
length | ) |
|
|
inlinestaticconstexpr |
The final length bytes — fetches a trailing shard index in one round trip without knowing the value size. length greater than the value size is an error.
The documentation for this struct was generated from the following file: