Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
impeller::Range Struct Reference

#include <range.h>

Public Member Functions

constexpr Range ()
 
constexpr Range (size_t p_offset, size_t p_length)
 
constexpr bool operator== (const Range &o) const
 

Public Attributes

size_t offset = 0
 
size_t length = 0
 

Detailed Description

Definition at line 12 of file range.h.

Constructor & Destructor Documentation

◆ Range() [1/2]

constexpr impeller::Range::Range ( )
inlineconstexpr

Definition at line 16 of file range.h.

16{}

◆ Range() [2/2]

constexpr impeller::Range::Range ( size_t  p_offset,
size_t  p_length 
)
inlineconstexpr

Definition at line 18 of file range.h.

19 : offset(p_offset), length(p_length) {}
size_t length
Definition: range.h:14
size_t offset
Definition: range.h:13

Member Function Documentation

◆ operator==()

constexpr bool impeller::Range::operator== ( const Range o) const
inlineconstexpr

Definition at line 21 of file range.h.

21 {
22 return offset == o.offset && length == o.length;
23 }

Member Data Documentation

◆ length

size_t impeller::Range::length = 0

Definition at line 14 of file range.h.

◆ offset

size_t impeller::Range::offset = 0

Definition at line 13 of file range.h.


The documentation for this struct was generated from the following file: