LLVM 20.0.0git
|
#include "llvm/Object/Archive.h"
Public Member Functions | |
ArchiveMemberHeader (const Archive *Parent, const char *RawHeaderPtr, uint64_t Size, Error *Err) | |
std::unique_ptr< AbstractArchiveMemberHeader > | clone () const override |
Expected< StringRef > | getRawName () const override |
Get the name without looking up long names. | |
Expected< StringRef > | getName (uint64_t Size) const override |
Get the name looking up long names. | |
Expected< uint64_t > | getSize () const override |
Expected< const char * > | getNextChildLoc () const override |
Get next file member location. | |
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. | |
Public Member Functions inherited from llvm::object::AbstractArchiveMemberHeader | |
virtual std::unique_ptr< AbstractArchiveMemberHeader > | clone () const =0 |
virtual | ~AbstractArchiveMemberHeader ()=default |
virtual Expected< StringRef > | getRawName () 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< StringRef > | getName (uint64_t Size) const =0 |
Get the name looking up long names. | |
virtual Expected< uint64_t > | getSize () const =0 |
virtual uint64_t | getOffset () const =0 |
virtual Expected< const char * > | getNextChildLoc () const =0 |
Get next file member location. | |
virtual Expected< bool > | isThin () const =0 |
Expected< sys::fs::perms > | getAccessMode () 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. | |
Additional Inherited Members | |
Public Attributes inherited from llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType > | |
UnixArMemHdrType const * | ArMemHdr |
Public Attributes inherited from llvm::object::AbstractArchiveMemberHeader | |
const Archive * | Parent |
Protected Member Functions inherited from llvm::object::AbstractArchiveMemberHeader | |
AbstractArchiveMemberHeader (const Archive *Parent) | |
ArchiveMemberHeader::ArchiveMemberHeader | ( | const Archive * | Parent, |
const char * | RawHeaderPtr, | ||
uint64_t | Size, | ||
Error * | Err | ||
) |
Definition at line 95 of file Archive.cpp.
References llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::ArMemHdr, llvm::consumeError(), createMemberHeaderParseError(), llvm::StringRef::data(), llvm::raw_ostream::flush(), llvm::Expected< T >::get(), llvm::object::Binary::getData(), getName(), llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::getSizeOf(), malformedError(), llvm::Offset, OS, llvm::object::AbstractArchiveMemberHeader::Parent, Size, llvm::Expected< T >::takeError(), llvm::object::UnixArMemHdrType::Terminator, and llvm::raw_ostream::write_escaped().
|
inlineoverridevirtual |
Implements llvm::object::AbstractArchiveMemberHeader.
Get the name looking up long names.
Implements llvm::object::AbstractArchiveMemberHeader.
Definition at line 245 of file Archive.cpp.
References llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::ArMemHdr, llvm::StringRef::begin(), llvm::StringRef::data(), End, llvm::StringRef::find(), llvm::raw_ostream::flush(), llvm::Expected< T >::get(), llvm::object::Binary::getData(), getRawName(), llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::getSizeOf(), llvm::object::Archive::getStringTable(), llvm::object::Archive::K_GNU, llvm::object::Archive::K_GNU64, llvm::object::Archive::kind(), malformedError(), llvm::object::UnixArMemHdrType::Name, Name, llvm::StringRef::npos, offsetof, OS, llvm::object::AbstractArchiveMemberHeader::Parent, llvm::StringRef::rtrim(), llvm::StringRef::size(), Size, llvm::StringRef::slice(), llvm::Expected< T >::takeError(), and llvm::raw_ostream::write_escaped().
Referenced by ArchiveMemberHeader().
Get next file member location.
Implements llvm::object::AbstractArchiveMemberHeader.
Definition at line 426 of file Archive.cpp.
References llvm::alignTo(), llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::ArMemHdr, llvm::Expected< T >::get(), llvm::MemoryBufferRef::getBufferEnd(), llvm::object::Binary::getMemoryBufferRef(), getSize(), llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::getSizeOf(), isThin(), llvm::object::AbstractArchiveMemberHeader::Parent, Size, and llvm::Expected< T >::takeError().
Get the name without looking up long names.
Implements llvm::object::AbstractArchiveMemberHeader.
Definition at line 155 of file Archive.cpp.
References llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::ArMemHdr, assert(), llvm::StringRef::data(), llvm::StringRef::find(), llvm::object::Binary::getData(), llvm::object::Archive::K_BSD, llvm::object::Archive::K_DARWIN64, llvm::object::Archive::kind(), malformedError(), llvm::object::UnixArMemHdrType::Name, llvm::StringRef::npos, llvm::Offset, and llvm::object::AbstractArchiveMemberHeader::Parent.
Implements llvm::object::AbstractArchiveMemberHeader.
Definition at line 357 of file Archive.cpp.
References llvm::object::CommonArchiveMemberHeader< UnixArMemHdrType >::ArMemHdr, getArchiveMemberDecField(), getFieldRawString(), llvm::object::AbstractArchiveMemberHeader::Parent, and llvm::object::UnixArMemHdrType::Size.
Referenced by getNextChildLoc().
Implements llvm::object::AbstractArchiveMemberHeader.
Definition at line 418 of file Archive.cpp.
References llvm::Expected< T >::get(), getRawName(), llvm::object::Archive::isThin(), Name, llvm::object::AbstractArchiveMemberHeader::Parent, and llvm::Expected< T >::takeError().
Referenced by getNextChildLoc().