#include "tensorstore/kvstore/byte_range.h"
struct tensorstore::ByteRange;

Specifies a range of bytes within a stored value.

Data members

int64_t inclusive_min;

Specifies the starting byte (inclusive).

int64_t exclusive_max;

Specifies the ending byte (exclusive).

Methods

constexpr bool SatisfiesInvariants() const;

Checks that this byte range is valid.

int64_t size() const;

Returns the number of bytes contained in the range.

Friend functions

friend bool operator==(const ByteRangeaconst ByteRangeb);
friend bool operator!=(const ByteRangeaconst ByteRangeb);

Compares two byte ranges for equality.

friend std::ostreamoperator<<(std::ostreamosconst ByteRanger);

Prints a debugging string representation to an std::ostream.