LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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_t * BufEnd = nullptr
 

Detailed Description

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

Definition at line 99 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 102 of file ELF.h.

References llvm::size().

◆ DataRegion() [2/2]

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

Definition at line 106 of file ELF.h.

Member Function Documentation

◆ operator[]()

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

Member Data Documentation

◆ BufEnd

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

Definition at line 126 of file ELF.h.

Referenced by llvm::object::DataRegion< T >::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 125 of file ELF.h.

Referenced by llvm::object::DataRegion< T >::operator[]().


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