Lines Matching refs:Archive
49 Archive::MAGIC_LEN); in isMyFormat()
64 return (0 == memcmp(pStr, Archive::MAGIC, Archive::MAGIC_LEN)); in isArchive()
70 return (0 == memcmp(pStr, Archive::THIN_MAGIC, Archive::MAGIC_LEN)); in isThinArchive()
78 Archive::MAGIC_LEN); in isThinArchive()
90 bool GNUArchiveReader::readArchive(Archive& pArchive) in readArchive()
93 if (Archive::MAGIC_LEN == pArchive.getARFile().memArea()->handler()->size()) in readArchive()
119 if (Archive::Symbol::Unknown != pArchive.getSymbolStatus(idx)) in readArchive()
124 pArchive.setSymbolStatus(idx, Archive::Symbol::Include); in readArchive()
129 Archive::Symbol::Status status = in readArchive()
131 if (Archive::Symbol::Unknown != status) in readArchive()
134 if (Archive::Symbol::Include == status) { in readArchive()
154 Input* GNUArchiveReader::readMemberHeader(Archive& pArchiveRoot, in readMemberHeader()
164 sizeof(Archive::MemberHeader)); in readMemberHeader()
165 const Archive::MemberHeader* header = in readMemberHeader()
166 reinterpret_cast<const Archive::MemberHeader*>(header_region->getBuffer()); in readMemberHeader()
168 assert(0 == memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag))); in readMemberHeader()
211 sizeof(Archive::MemberHeader))); in readMemberHeader()
216 Archive::ArchiveMember* ar_member = in readMemberHeader()
241 bool GNUArchiveReader::readSymbolTable(Archive& pArchive) in readSymbolTable()
247 Archive::MAGIC_LEN), in readSymbolTable()
248 sizeof(Archive::MemberHeader)); in readSymbolTable()
249 const Archive::MemberHeader* header = in readSymbolTable()
250 reinterpret_cast<const Archive::MemberHeader*>(header_region->getBuffer()); in readSymbolTable()
251 assert(0 == memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag))); in readSymbolTable()
260 Archive::MAGIC_LEN + in readSymbolTable()
261 sizeof(Archive::MemberHeader)), in readSymbolTable()
293 bool GNUArchiveReader::readStringTable(Archive& pArchive) in readStringTable()
295 size_t offset = Archive::MAGIC_LEN + in readStringTable()
296 sizeof(Archive::MemberHeader) + in readStringTable()
307 sizeof(Archive::MemberHeader)); in readStringTable()
308 const Archive::MemberHeader* header = in readStringTable()
309 reinterpret_cast<const Archive::MemberHeader*>(header_region->getBuffer()); in readStringTable()
311 assert(0 == memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag))); in readStringTable()
313 if (0 == memcmp(header->name, Archive::STRTAB_NAME, sizeof(header->name))) { in readStringTable()
319 offset + sizeof(Archive::MemberHeader)), in readStringTable()
332 enum Archive::Symbol::Status
339 return Archive::Symbol::Exclude; in shouldIncludeSymbol()
341 return Archive::Symbol::Unknown; in shouldIncludeSymbol()
342 return Archive::Symbol::Include; in shouldIncludeSymbol()
344 return Archive::Symbol::Unknown; in shouldIncludeSymbol()
351 size_t GNUArchiveReader::includeMember(Archive& pArchive, uint32_t pFileOffset) in includeMember()
368 if (Input::Archive == member->type()) { in includeMember()
375 Archive::ArchiveMember* parent = in includeMember()
395 member->setType(Input::Archive); in includeMember()
410 bool GNUArchiveReader::includeAllMembers(Archive& pArchive) in includeAllMembers()
425 Archive::MAGIC_LEN + in includeAllMembers()
426 sizeof(Archive::MemberHeader) + in includeAllMembers()
431 begin_offset += sizeof(Archive::MemberHeader) + in includeAllMembers()
437 offset += sizeof(Archive::MemberHeader)) { in includeAllMembers()