class Archive::Child
Declaration
class Archive::Child { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Object/Archive.h:163
Member Variables
- private const llvm::object::Archive* Parent
- private std::unique_ptr<AbstractArchiveMemberHeader> Header
- private llvm::StringRef Data
- Includes header but not padding byte.
- private uint16_t StartOfFile
- Offset from Data to the start of the file.
Method Overview
- public Child(const llvm::object::Archive * Parent, const char * Start, llvm::Error * Err)
- public Child(const llvm::object::Archive * Parent, llvm::StringRef Data, uint16_t StartOfFile)
- public Child(const llvm::object::Archive::Child & C)
- public Child(llvm::object::Archive::Child && C)
- public Expected<sys::fs::perms> getAccessMode() const
- public Expected<std::unique_ptr<Binary>> getAsBinary(llvm::LLVMContext * Context = nullptr) const
- public Expected<llvm::StringRef> getBuffer() const
- public uint64_t getChildOffset() const
- public uint64_t getDataOffset() const
- public Expected<std::string> getFullName() const
- public Expected<unsigned int> getGID() const
- public Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const
- public Expected<llvm::MemoryBufferRef> getMemoryBufferRef() const
- public Expected<llvm::StringRef> getName() const
- public Expected<llvm::object::Archive::Child> getNext() const
- public const llvm::object::Archive * getParent() const
- public llvm::StringRef getRawLastModified() const
- public Expected<llvm::StringRef> getRawName() const
- public Expected<uint64_t> getRawSize() const
- public Expected<uint64_t> getSize() const
- public Expected<unsigned int> getUID() const
- private Expected<bool> isThinMember() const
Methods
¶Child(const llvm::object::Archive* Parent,
const char* Start,
llvm::Error* Err)
Child(const llvm::object::Archive* Parent,
const char* Start,
llvm::Error* Err)
Declared at: llvm/include/llvm/Object/Archive.h:177
Parameters
- const llvm::object::Archive* Parent
- const char* Start
- llvm::Error* Err
¶Child(const llvm::object::Archive* Parent,
llvm::StringRef Data,
uint16_t StartOfFile)
Child(const llvm::object::Archive* Parent,
llvm::StringRef Data,
uint16_t StartOfFile)
Declared at: llvm/include/llvm/Object/Archive.h:178
Parameters
- const llvm::object::Archive* Parent
- llvm::StringRef Data
- uint16_t StartOfFile
¶Child(const llvm::object::Archive::Child& C)
Child(const llvm::object::Archive::Child& C)
Declared at: llvm/include/llvm/Object/Archive.h:180
Parameters
- const llvm::object::Archive::Child& C
¶Child(llvm::object::Archive::Child&& C)
Child(llvm::object::Archive::Child&& C)
Declared at: llvm/include/llvm/Object/Archive.h:186
Parameters
¶Expected<sys::fs::perms> getAccessMode() const
Expected<sys::fs::perms> getAccessMode() const
Declared at: llvm/include/llvm/Object/Archive.h:241
¶Expected<std::unique_ptr<Binary>> getAsBinary(
llvm::LLVMContext* Context = nullptr) const
Expected<std::unique_ptr<Binary>> getAsBinary(
llvm::LLVMContext* Context = nullptr) const
Declared at: llvm/include/llvm/Object/Archive.h:257
Parameters
- llvm::LLVMContext* Context = nullptr
¶Expected<llvm::StringRef> getBuffer() const
Expected<llvm::StringRef> getBuffer() const
Declared at: llvm/include/llvm/Object/Archive.h:250
¶uint64_t getChildOffset() const
uint64_t getChildOffset() const
Declared at: llvm/include/llvm/Object/Archive.h:251
¶uint64_t getDataOffset() const
uint64_t getDataOffset() const
Declared at: llvm/include/llvm/Object/Archive.h:252
¶Expected<std::string> getFullName() const
Expected<std::string> getFullName() const
Declared at: llvm/include/llvm/Object/Archive.h:227
¶Expected<unsigned int> getGID() const
Expected<unsigned int> getGID() const
Declared at: llvm/include/llvm/Object/Archive.h:239
¶Expected<sys::TimePoint<std::chrono::seconds>>
getLastModified() const
Expected<sys::TimePoint<std::chrono::seconds>>
getLastModified() const
Declared at: llvm/include/llvm/Object/Archive.h:230
¶Expected<llvm::MemoryBufferRef>
getMemoryBufferRef() const
Expected<llvm::MemoryBufferRef>
getMemoryBufferRef() const
Declared at: llvm/include/llvm/Object/Archive.h:254
¶Expected<llvm::StringRef> getName() const
Expected<llvm::StringRef> getName() const
Declared at: llvm/include/llvm/Object/Archive.h:226
¶Expected<llvm::object::Archive::Child> getNext()
const
Expected<llvm::object::Archive::Child> getNext()
const
Declared at: llvm/include/llvm/Object/Archive.h:224
¶const llvm::object::Archive* getParent() const
const llvm::object::Archive* getParent() const
Declared at: llvm/include/llvm/Object/Archive.h:223
¶llvm::StringRef getRawLastModified() const
llvm::StringRef getRawLastModified() const
Declared at: llvm/include/llvm/Object/Archive.h:234
¶Expected<llvm::StringRef> getRawName() const
Expected<llvm::StringRef> getRawName() const
Declared at: llvm/include/llvm/Object/Archive.h:228
¶Expected<uint64_t> getRawSize() const
Expected<uint64_t> getRawSize() const
Declared at: llvm/include/llvm/Object/Archive.h:248
Returns
the size in the archive header for this member.
¶Expected<uint64_t> getSize() const
Expected<uint64_t> getSize() const
Declared at: llvm/include/llvm/Object/Archive.h:246
Returns
the size of the archive member without the header or padding.
¶Expected<unsigned int> getUID() const
Expected<unsigned int> getUID() const
Declared at: llvm/include/llvm/Object/Archive.h:238
¶Expected<bool> isThinMember() const
Expected<bool> isThinMember() const
Declared at: llvm/include/llvm/Object/Archive.h:174