Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::object::DataRegion< T > Struct Template Reference

#include "llvm/Object/ELF.h"

Public Member Functions

 DataRegion (ArrayRef< T > Arr)
 DataRegion (const T *Data, const uint8_t *BufferEnd)
Expected< Toperator[] (uint64_t N)

Public Attributes

const TFirst
std::optional< uint64_tSize
const uint8_tBufEnd = nullptr

Detailed Description

template<class T>
struct llvm::object::DataRegion< T >

Definition at line 100 of file ELF.h.

Constructor & Destructor Documentation

◆ DataRegion() [1/2]

template<class T>
llvm::object::DataRegion< T >::DataRegion ( ArrayRef< T > Arr)
inline

Definition at line 103 of file ELF.h.

References data, First, Size, and llvm::size().

◆ DataRegion() [2/2]

template<class T>
llvm::object::DataRegion< T >::DataRegion ( const T * Data,
const uint8_t * BufferEnd )
inline

Definition at line 107 of file ELF.h.

References BufEnd, llvm::Data, First, and T.

Member Function Documentation

◆ operator[]()

template<class T>
Expected< T > llvm::object::DataRegion< T >::operator[] ( uint64_t N)
inline

Definition at line 110 of file ELF.h.

References assert(), BufEnd, llvm::object::createError(), First, N, Size, and T.

Member Data Documentation

◆ BufEnd

template<class T>
const uint8_t* llvm::object::DataRegion< T >::BufEnd = nullptr

Definition at line 127 of file ELF.h.

Referenced by DataRegion(), and operator[]().

◆ First

template<class T>
const T* llvm::object::DataRegion< T >::First

◆ Size

template<class T>
std::optional<uint64_t> llvm::object::DataRegion< T >::Size

Definition at line 126 of file ELF.h.

Referenced by DataRegion(), and operator[]().


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