Boost C++ Libraries

PrevUpHomeNext

Struct byte_range

boost::taar::byte_range — An inclusive byte interval [first, last] of a representation.

Synopsis

// In header: <boost/taar/core/byte_range.hpp>


struct byte_range {

  // public member functions
  constexpr std::uint64_t length() const noexcept;

  // public data members
  std::uint64_t first;  // Offset of the first byte. 
  std::uint64_t last;  // Offset of the last byte (inclusive). 
};

Description

byte_range public member functions

  1. constexpr std::uint64_t length() const noexcept;
    Number of bytes in the range.

PrevUpHomeNext