| Flutter Impeller |

range.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #pragma once
6
7 #include <cstddef>
8
9 #include "flutter/fml/macros.h"
10
11 namespace impeller {
12
13 struct Range {
14 size_t offset = 0;
15 size_t length = 0;
16
17 constexpr Range() {}
18
19 constexpr Range(size_t p_offset, size_t p_length)
20 : offset(p_offset), length(p_length) {}
21
22 constexpr bool operator==(const Range& o) const {
23 return offset == o.offset && length == o.length;
24 }
25 };
26
27 } // namespace impeller
impeller::Range::operator==
constexpr bool operator==(const Range &o) const
Definition: range.h:22
impeller::Range::Range
constexpr Range()
Definition: range.h:17
impeller::Range::offset
size_t offset
Definition: range.h:14
impeller::Range::Range
constexpr Range(size_t p_offset, size_t p_length)
Definition: range.h:19
impeller::Range
Definition: range.h:13
impeller::Range::length
size_t length
Definition: range.h:15
impeller
Definition: aiks_context.cc:10