LLVM 22.0.0git
llvm::object::Elf_Note_Impl< ELFT > Class Template Reference

An ELF note. More...

#include "llvm/Object/ELFTypes.h"

Inheritance diagram for llvm::object::Elf_Note_Impl< ELFT >:
[legend]

Public Member Functions

 Elf_Note_Impl (const Elf_Nhdr_Impl< ELFT > &Nhdr)
StringRef getName () const
 Get the note's name, excluding the terminating null byte.
ArrayRef< uint8_tgetDesc (size_t Align) const
 Get the note's descriptor.
StringRef getDescAsStringRef (size_t Align) const
 Get the note's descriptor as StringRef.
Elf_Word getType () const
 Get the note's type.

Friends

template<class NoteIteratorELFT>
class Elf_Note_Iterator_Impl

Detailed Description

template<class ELFT>
class llvm::object::Elf_Note_Impl< ELFT >

An ELF note.

Wraps a note header, providing methods for accessing the name and descriptor safely.

Definition at line 644 of file ELFTypes.h.

Constructor & Destructor Documentation

◆ Elf_Note_Impl()

template<class ELFT>
llvm::object::Elf_Note_Impl< ELFT >::Elf_Note_Impl ( const Elf_Nhdr_Impl< ELFT > & Nhdr)
inline

Definition at line 652 of file ELFTypes.h.

Member Function Documentation

◆ getDesc()

template<class ELFT>
ArrayRef< uint8_t > llvm::object::Elf_Note_Impl< ELFT >::getDesc ( size_t Align) const
inline

Get the note's descriptor.

Definition at line 663 of file ELFTypes.h.

◆ getDescAsStringRef()

template<class ELFT>
StringRef llvm::object::Elf_Note_Impl< ELFT >::getDescAsStringRef ( size_t Align) const
inline

Get the note's descriptor as StringRef.

Definition at line 673 of file ELFTypes.h.

◆ getName()

template<class ELFT>
StringRef llvm::object::Elf_Note_Impl< ELFT >::getName ( ) const
inline

Get the note's name, excluding the terminating null byte.

Definition at line 655 of file ELFTypes.h.

◆ getType()

template<class ELFT>
Elf_Word llvm::object::Elf_Note_Impl< ELFT >::getType ( ) const
inline

Get the note's type.

Definition at line 679 of file ELFTypes.h.

◆ Elf_Note_Iterator_Impl

template<class ELFT>
template<class NoteIteratorELFT>
friend class Elf_Note_Iterator_Impl
friend

Definition at line 649 of file ELFTypes.h.


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