LLVM 20.0.0git
Public Member Functions | List of all members
llvm::object::ArchiveMemberHeader Class Reference

#include "llvm/Object/Archive.h"

Inheritance diagram for llvm::object::ArchiveMemberHeader:
Inheritance graph
[legend]

Public Member Functions

 ArchiveMemberHeader (const Archive *Parent, const char *RawHeaderPtr, uint64_t Size, Error *Err)
 
std::unique_ptr< AbstractArchiveMemberHeaderclone () const override
 
Expected< StringRefgetRawName () const override
 Get the name without looking up long names.
 
Expected< StringRefgetName (uint64_t Size) const override
 Get the name looking up long names.
 
Expected< uint64_tgetSize () const override
 
Expected< const char * > getNextChildLoc () const override
 Get next file member location.
 
Expected< boolisThin () const override
 
- Public Member Functions inherited from llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >
 CommonArchiveMemberHeader (const Archive *Parent, const UnixArMemHdrType *RawHeaderPtr)
 
StringRef getRawAccessMode () const override
 
StringRef getRawLastModified () const override
 
StringRef getRawUID () const override
 
StringRef getRawGID () const override
 
uint64_t getOffset () const override
 
uint64_t getSizeOf () const override
 Returns the size in bytes of the format-defined member header of the concrete archive type.
 
- Public Member Functions inherited from llvm::object::AbstractArchiveMemberHeader
virtual std::unique_ptr< AbstractArchiveMemberHeaderclone () const =0
 
virtual ~AbstractArchiveMemberHeader ()=default
 
virtual Expected< StringRefgetRawName () const =0
 Get the name without looking up long names.
 
virtual StringRef getRawAccessMode () const =0
 
virtual StringRef getRawLastModified () const =0
 
virtual StringRef getRawUID () const =0
 
virtual StringRef getRawGID () const =0
 
virtual Expected< StringRefgetName (uint64_t Size) const =0
 Get the name looking up long names.
 
virtual Expected< uint64_tgetSize () const =0
 
virtual uint64_t getOffset () const =0
 
virtual Expected< const char * > getNextChildLoc () const =0
 Get next file member location.
 
virtual Expected< boolisThin () const =0
 
Expected< sys::fs::permsgetAccessMode () const
 
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified () const
 
Expected< unsignedgetUID () const
 
Expected< unsignedgetGID () const
 
virtual uint64_t getSizeOf () const =0
 Returns the size in bytes of the format-defined member header of the concrete archive type.
 

Additional Inherited Members

- Public Attributes inherited from llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >
UnixArMemHdrType constArMemHdr
 
- Public Attributes inherited from llvm::object::AbstractArchiveMemberHeader
const ArchiveParent
 
- Protected Member Functions inherited from llvm::object::AbstractArchiveMemberHeader
 AbstractArchiveMemberHeader (const Archive *Parent)
 

Detailed Description

Definition at line 102 of file Archive.h.

Constructor & Destructor Documentation

◆ ArchiveMemberHeader()

ArchiveMemberHeader::ArchiveMemberHeader ( const Archive Parent,
const char RawHeaderPtr,
uint64_t  Size,
Error Err 
)

Member Function Documentation

◆ clone()

std::unique_ptr< AbstractArchiveMemberHeader > llvm::object::ArchiveMemberHeader::clone ( ) const
inlineoverridevirtual

Implements llvm::object::AbstractArchiveMemberHeader.

Definition at line 107 of file Archive.h.

◆ getName()

Expected< StringRef > ArchiveMemberHeader::getName ( uint64_t  Size) const
overridevirtual

◆ getNextChildLoc()

Expected< const char * > ArchiveMemberHeader::getNextChildLoc ( ) const
overridevirtual

◆ getRawName()

Expected< StringRef > ArchiveMemberHeader::getRawName ( ) const
overridevirtual

◆ getSize()

Expected< uint64_t > ArchiveMemberHeader::getSize ( ) const
overridevirtual

◆ isThin()

Expected< bool > ArchiveMemberHeader::isThin ( ) const
overridevirtual

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