LLVM  8.0.1
Public Member Functions | List of all members
llvm::object::Archive::Child Class Reference

#include "llvm/Object/Archive.h"

Public Member Functions

 Child (const Archive *Parent, const char *Start, Error *Err)
 
 Child (const Archive *Parent, StringRef Data, uint16_t StartOfFile)
 
bool operator== (const Child &other) const
 
const ArchivegetParent () const
 
Expected< ChildgetNext () const
 
Expected< StringRefgetName () const
 
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
 
Expected< uint64_t > getSize () const
 
Expected< uint64_t > getRawSize () const
 
Expected< StringRefgetBuffer () const
 
uint64_t getChildOffset () const
 
Expected< MemoryBufferRefgetMemoryBufferRef () const
 
Expected< std::unique_ptr< Binary > > getAsBinary (LLVMContext *Context=nullptr) const
 

Detailed Description

Definition at line 88 of file Archive.h.

Constructor & Destructor Documentation

◆ Child() [1/2]

Archive::Child::Child ( const Archive Parent,
const char Start,
Error Err 
)

Definition at line 328 of file Archive.cpp.

Referenced by getNext().

◆ Child() [2/2]

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

Definition at line 322 of file Archive.cpp.

Member Function Documentation

◆ getAccessMode()

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

◆ getAsBinary()

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

◆ getBuffer()

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

◆ getChildOffset()

uint64_t Archive::Child::getChildOffset ( ) const

◆ getFullName()

Expected< std::string > Archive::Child::getFullName ( ) const

◆ getGID()

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

◆ getLastModified()

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

◆ getMemoryBufferRef()

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

◆ getName()

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

◆ getNext()

Expected< Archive::Child > Archive::Child::getNext ( ) const

◆ getParent()

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

◆ getRawLastModified()

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

◆ getRawName()

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

Definition at line 115 of file Archive.h.

References llvm::object::ArchiveMemberHeader::getRawName().

◆ getRawSize()

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

Definition at line 405 of file Archive.cpp.

References llvm::Expected< T >::get(), llvm::object::ArchiveMemberHeader::getRawName(), llvm::object::ArchiveMemberHeader::getSize(), Name, and llvm::Expected< T >::takeError().

Referenced by getName().

◆ getSize()

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

Definition at line 395 of file Archive.cpp.

References llvm::Expected< T >::get(), llvm::object::ArchiveMemberHeader::getSize(), Size, llvm::StringRef::size(), and llvm::Expected< T >::takeError().

Referenced by getBuffer().

◆ getUID()

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

◆ operator==()

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

Definition at line 105 of file Archive.h.

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


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