Lines Matching refs:Archive
44 if (pInput.memArea()->size() < Archive::MAGIC_LEN) in isMyFormat()
48 pInput.memArea()->request(pInput.fileOffset(), Archive::MAGIC_LEN); in isMyFormat()
62 return (memcmp(pStr, Archive::MAGIC, Archive::MAGIC_LEN) == 0); in isArchive()
67 return (memcmp(pStr, Archive::THIN_MAGIC, Archive::MAGIC_LEN) == 0); in isThinArchive()
74 pInput.memArea()->request(pInput.fileOffset(), Archive::MAGIC_LEN); in isThinArchive()
86 Archive& pArchive) { in readArchive()
88 if (Archive::MAGIC_LEN == pArchive.getARFile().memArea()->size()) in readArchive()
114 if (Archive::Symbol::Unknown != pArchive.getSymbolStatus(idx)) in readArchive()
119 pArchive.setSymbolStatus(idx, Archive::Symbol::Include); in readArchive()
124 Archive::Symbol::Status status = in readArchive()
126 if (Archive::Symbol::Unknown != status) in readArchive()
129 if (Archive::Symbol::Include == status) { in readArchive()
149 Input* GNUArchiveReader::readMemberHeader(Archive& pArchiveRoot, in readMemberHeader()
157 (pArchiveFile.fileOffset() + pFileOffset), sizeof(Archive::MemberHeader)); in readMemberHeader()
158 const Archive::MemberHeader* header = in readMemberHeader()
159 reinterpret_cast<const Archive::MemberHeader*>(header_region.begin()); in readMemberHeader()
161 assert(memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag)) == in readMemberHeader()
205 (pFileOffset + sizeof(Archive::MemberHeader))); in readMemberHeader()
209 Archive::ArchiveMember* ar_member = in readMemberHeader()
231 static void readSymbolTableEntries(Archive& pArchive, in readSymbolTableEntries()
260 bool GNUArchiveReader::readSymbolTable(Archive& pArchive) { in readSymbolTable()
265 (pArchive.getARFile().fileOffset() + Archive::MAGIC_LEN), in readSymbolTable()
266 sizeof(Archive::MemberHeader)); in readSymbolTable()
267 const Archive::MemberHeader* header = in readSymbolTable()
268 reinterpret_cast<const Archive::MemberHeader*>(header_region.begin()); in readSymbolTable()
269 assert(memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag)) == in readSymbolTable()
277 (pArchive.getARFile().fileOffset() + Archive::MAGIC_LEN + in readSymbolTable()
278 sizeof(Archive::MemberHeader)), in readSymbolTable()
282 Archive::SVR4_SYMTAB_NAME, in readSymbolTable()
283 strlen(Archive::SVR4_SYMTAB_NAME)) == 0) in readSymbolTable()
286 Archive::IRIX6_SYMTAB_NAME, in readSymbolTable()
287 strlen(Archive::IRIX6_SYMTAB_NAME)) == 0) in readSymbolTable()
296 bool GNUArchiveReader::readStringTable(Archive& pArchive) { in readStringTable()
297 size_t offset = Archive::MAGIC_LEN + sizeof(Archive::MemberHeader) + in readStringTable()
308 sizeof(Archive::MemberHeader)); in readStringTable()
309 const Archive::MemberHeader* header = in readStringTable()
310 reinterpret_cast<const Archive::MemberHeader*>(header_region.begin()); in readStringTable()
312 assert(memcmp(header->fmag, Archive::MEMBER_MAGIC, sizeof(header->fmag)) == in readStringTable()
315 if (memcmp(header->name, Archive::STRTAB_NAME, sizeof(header->name)) == 0) { in readStringTable()
320 sizeof(Archive::MemberHeader)), in readStringTable()
330 enum Archive::Symbol::Status GNUArchiveReader::shouldIncludeSymbol( in shouldIncludeSymbol()
336 return Archive::Symbol::Exclude; in shouldIncludeSymbol()
338 return Archive::Symbol::Unknown; in shouldIncludeSymbol()
339 return Archive::Symbol::Include; in shouldIncludeSymbol()
341 return Archive::Symbol::Unknown; in shouldIncludeSymbol()
350 Archive& pArchive, in includeMember()
364 if (Input::Archive == member->type()) { in includeMember()
371 Archive::ArchiveMember* parent = in includeMember()
395 member->setType(Input::Archive); in includeMember()
413 Archive& pArchive) { in includeAllMembers()
427 Archive::MAGIC_LEN + sizeof(Archive::MemberHeader) + in includeAllMembers()
433 sizeof(Archive::MemberHeader) + pArchive.getStrTable().size(); in includeAllMembers()
437 offset += sizeof(Archive::MemberHeader)) { in includeAllMembers()