LLVM 22.0.0git
llvm::object::Archive::Child Class Reference

#include "llvm/Object/Archive.h"

Public Member Functions

LLVM_ABI Child (const Archive *Parent, const char *Start, Error *Err)
LLVM_ABI Child (const Archive *Parent, StringRef Data, uint16_t StartOfFile)
 Child (const Child &C)
 Child (Child &&C)
Childoperator= (Child &&C) noexcept
Childoperator= (const Child &C)
bool operator== (const Child &other) const
const ArchivegetParent () const
LLVM_ABI Expected< ChildgetNext () const
LLVM_ABI Expected< StringRefgetName () const
LLVM_ABI Expected< std::string > getFullName () const
Expected< StringRefgetRawName () const
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified () const
StringRef getRawLastModified () const
Expected< unsignedgetUID () const
Expected< unsignedgetGID () const
Expected< sys::fs::permsgetAccessMode () const
LLVM_ABI Expected< uint64_tgetSize () const
LLVM_ABI Expected< uint64_tgetRawSize () const
LLVM_ABI Expected< StringRefgetBuffer () const
LLVM_ABI uint64_t getChildOffset () const
uint64_t getDataOffset () const
LLVM_ABI Expected< MemoryBufferRefgetMemoryBufferRef () const
LLVM_ABI Expected< std::unique_ptr< Binary > > getAsBinary (LLVMContext *Context=nullptr) const

Detailed Description

Definition at line 163 of file Archive.h.

Constructor & Destructor Documentation

◆ Child() [1/4]

◆ Child() [2/4]

Archive::Child::Child ( const Archive * Parent,
StringRef Data,
uint16_t StartOfFile )

Definition at line 461 of file Archive.cpp.

◆ Child() [3/4]

llvm::object::Archive::Child::Child ( const Child & C)
inline

Definition at line 180 of file Archive.h.

References llvm::CallingConv::C, and Child().

◆ Child() [4/4]

llvm::object::Archive::Child::Child ( Child && C)
inline

Definition at line 186 of file Archive.h.

References llvm::CallingConv::C, and Child().

Member Function Documentation

◆ getAccessMode()

Expected< sys::fs::perms > llvm::object::Archive::Child::getAccessMode ( ) const
inline

Definition at line 241 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getAsBinary()

Expected< std::unique_ptr< Binary > > Archive::Child::getAsBinary ( LLVMContext * Context = nullptr) const

◆ getBuffer()

◆ getChildOffset()

uint64_t Archive::Child::getChildOffset ( ) const

Definition at line 623 of file Archive.cpp.

Referenced by getDataOffset().

◆ getDataOffset()

uint64_t llvm::object::Archive::Child::getDataOffset ( ) const
inline

Definition at line 252 of file Archive.h.

References getChildOffset().

◆ getFullName()

◆ getGID()

Expected< unsigned > llvm::object::Archive::Child::getGID ( ) const
inline

Definition at line 239 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getLastModified()

Expected< sys::TimePoint< std::chrono::seconds > > llvm::object::Archive::Child::getLastModified ( ) const
inline

Definition at line 230 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getMemoryBufferRef()

Expected< MemoryBufferRef > Archive::Child::getMemoryBufferRef ( ) const

◆ getName()

Expected< StringRef > Archive::Child::getName ( ) const

◆ getNext()

◆ getParent()

const Archive * llvm::object::Archive::Child::getParent ( ) const
inline

Definition at line 223 of file Archive.h.

◆ getRawLastModified()

StringRef llvm::object::Archive::Child::getRawLastModified ( ) const
inline

Definition at line 234 of file Archive.h.

◆ getRawName()

Expected< StringRef > llvm::object::Archive::Child::getRawName ( ) const
inline

Definition at line 228 of file Archive.h.

Referenced by Child().

◆ getRawSize()

Expected< uint64_t > Archive::Child::getRawSize ( ) const
Returns
the size in the archive header for this member.

Definition at line 546 of file Archive.cpp.

Referenced by Child(), and getName().

◆ getSize()

Expected< uint64_t > Archive::Child::getSize ( ) const
Returns
the size of the archive member without the header or padding.

Definition at line 540 of file Archive.cpp.

◆ getUID()

Expected< unsigned > llvm::object::Archive::Child::getUID ( ) const
inline

Definition at line 238 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ operator=() [1/2]

Child & llvm::object::Archive::Child::operator= ( Child && C)
inlinenoexcept

Definition at line 193 of file Archive.h.

References llvm::CallingConv::C, and Child().

◆ operator=() [2/2]

Child & llvm::object::Archive::Child::operator= ( const Child & C)
inline

Definition at line 205 of file Archive.h.

References llvm::CallingConv::C, and Child().

◆ operator==()

bool llvm::object::Archive::Child::operator== ( const Child & other) const
inline

Definition at line 218 of file Archive.h.

References assert(), llvm::StringRef::begin(), and Child().


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