LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
range.hpp
1/* Copyright 2024 R. Thomas
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15#ifndef LIEF_RANGE_H
16#define LIEF_RANGE_H
17#include <cstdint>
18#include <ostream>
19
20namespace LIEF {
21struct range_t {
22 uint64_t low = 0;
23 uint64_t high = 0;
24
25 uint64_t size() const {
26 return high - low;
27 }
28
29 friend std::ostream& operator<<(std::ostream& os, const range_t& range);
30};
31
32}
33#endif
LIEF namespace.
Definition Abstract/Binary.hpp:31
Definition range.hpp:21