blob: e1a28878136ce3a22814b786594c082ab471bf1b [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <cstddef>
#include "flutter/fml/macros.h"
namespace impeller {
struct Range {
size_t offset = 0;
size_t length = 0;
constexpr Range() {}
constexpr Range(size_t p_offset, size_t p_length)
: offset(p_offset), length(p_length) {}
constexpr bool operator==(const Range& o) const {
return offset == o.offset && length == o.length;
}
};
} // namespace impeller