32 std::uint16_t
start()
const noexcept;
37 std::uint16_t
end()
const noexcept;
43 std::uint32_t
transferSize(std::uint32_t sliceSize)
const noexcept;
49 std::uint32_t
transferOffset(std::uint32_t payloadOffset, std::uint32_t sliceSize)
const noexcept;
SliceRange(std::uint16_t start, std::uint16_t end) noexcept
std::uint32_t transferSize(std::uint32_t sliceSize) const noexcept
Get the size of the range (end - start).
std::uint32_t transferOffset(std::uint32_t payloadOffset, std::uint32_t sliceSize) const noexcept
Get the offset within the payload for the start of the range.
std::uint16_t end() const noexcept
Get the exclusive end of the range.
std::uint16_t start() const noexcept
Get the inclusive start of the range.
static SliceRange make(std::uint16_t start, std::uint16_t end)
Create a SliceRange representing the range [start, end).