|
MXL : Media eXchange Layer
MXL
|
A SliceRange represents a range of slices within a grain. More...
#include <SliceRange.hpp>
Public Member Functions | |
| 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. | |
| 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::uint32_t | transferSize (std::uint32_t sliceSize) const noexcept |
| Get the size of the range (end - start). | |
Static Public Member Functions | |
| static SliceRange | make (std::uint16_t start, std::uint16_t end) |
| Create a SliceRange representing the range [start, end). | |
Private Member Functions | |
| SliceRange (std::uint16_t start, std::uint16_t end) noexcept | |
Private Attributes | |
| std::uint16_t | _end |
| std::uint16_t | _start |
A SliceRange represents a range of slices within a grain.
The range is represented as [start, end), where start is inclusive and end is exclusive.
Definition at line 15 of file SliceRange.hpp.
|
inlineprivatenoexcept |
Definition at line 52 of file SliceRange.hpp.
|
nodiscardnoexcept |
Get the exclusive end of the range.
Definition at line 35 of file SliceRange.cpp.
|
staticnodiscard |
Create a SliceRange representing the range [start, end).
| start | The inclusive start of the range. |
| end | The exclusive end of the range. |
| Exception::invalidArgument | if start is not less than end. |
Definition at line 10 of file SliceRange.cpp.
|
nodiscardnoexcept |
Get the inclusive start of the range.
Definition at line 30 of file SliceRange.cpp.
|
nodiscardnoexcept |
Get the offset within the payload for the start of the range.
Definition at line 25 of file SliceRange.cpp.
|
nodiscardnoexcept |
Get the size of the range (end - start).
Definition at line 20 of file SliceRange.cpp.
|
private |
Exclusive end of the range
Definition at line 59 of file SliceRange.hpp.
|
private |
Inclusive start of the range
Definition at line 58 of file SliceRange.hpp.