//===-- DataExtractor.h -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H #define LLVM_SUPPORT_DATAEXTRACTOR_H #include "llvm/ADT/StringRef.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/Error.h" namespace llvm { /// An auxiliary type to facilitate extraction of 3-byte entities. struct Uint24 { … }; uint24_t; static_assert …; /// Needed by swapByteOrder(). inline uint24_t getSwappedBytes(uint24_t C) { … } class DataExtractor { … }; } // namespace llvm #endif