| Flutter Impeller |

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 13 of file range.h.

## Constructor & Destructor Documentation

## ◆ Range() [1/2]

constexpr impeller::Range::Range | ( |  | ) |
| inline constexpr

Definition at line 17 of file range.h.

17 {}

## ◆ Range() [2/2]

constexpr impeller::Range::Range | ( | size_t | p_offset,
|  | size_t | p_length
| ) |  |
| inline constexpr

Definition at line 19 of file range.h.

20 : offset(p_offset), length(p_length) {}

## Member Function Documentation

## ◆ operator==()

constexpr bool impeller::Range::operator== | ( | const Range & | o | ) | const
| inline constexpr

Definition at line 22 of file range.h.

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

References length, and offset.

## Member Data Documentation

## ◆ length

size_t impeller::Range::length = 0

Definition at line 15 of file range.h.

Referenced by impeller::BlitPass::AddCopy(), impeller::DeviceBuffer::CopyHostBuffer(), and operator==().

## ◆ offset

size_t impeller::Range::offset = 0

Definition at line 14 of file range.h.

Referenced by impeller::Bind(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), and operator==().

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

- impeller/core/range.h

impeller::Range::offset
size_t offset
Definition: range.h:14
impeller::Range::length
size_t length
Definition: range.h:15