LLVM  15.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
Collaboration diagram for llvm::object::ArchiveMemberHeader:
Collaboration graph

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. More...
Expected< StringRefgetName (uint64_t Size) const override
 Get the name looking up long names. More...
Expected< uint64_tgetSize () const override
Expected< const char * > getNextChildLoc () const override
 Get next file member location. More...
Expected< bool > isThin () 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. More...
- Public Member Functions inherited from llvm::object::AbstractArchiveMemberHeader
virtual ~AbstractArchiveMemberHeader ()=default
virtual StringRef getRawAccessMode () const =0
virtual StringRef getRawLastModified () const =0
virtual StringRef getRawUID () const =0
virtual StringRef getRawGID () const =0
virtual uint64_t getOffset () const =0
Expected< sys::fs::permsgetAccessMode () const
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified () const
Expected< unsigned > getUID () const
Expected< unsigned > getGID () const
virtual uint64_t getSizeOf () const =0
 Returns the size in bytes of the format-defined member header of the concrete archive type. More...

Additional Inherited Members

- Public Attributes inherited from llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >
const UnixArMemHdrTypeArMemHdr
- 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 105 of file Archive.h.

Constructor & Destructor Documentation

◆ ArchiveMemberHeader()

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

Definition at line 95 of file Archive.cpp.

Member Function Documentation

◆ clone()

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

Implements llvm::object::AbstractArchiveMemberHeader.

Definition at line 110 of file Archive.h.

◆ getName()

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

◆ getNextChildLoc()

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

◆ getRawName()

Expected< StringRef > ArchiveMemberHeader::getRawName ( ) const

◆ getSize()

Expected< uint64_t > ArchiveMemberHeader::getSize ( ) const

◆ isThin()

Expected< bool > ArchiveMemberHeader::isThin ( ) const

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